mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-13 05:10:07 +08:00
Define __dso_handle in libtcc1.a
new glibc really can't avoid it anymore, so let's provide it. I've tried doing it only on systems that possibly are glibc based. (For others it would be harmless as it simply wouldn't be picked up from libtcc1.a)
This commit is contained in:
parent
7894f39e65
commit
dd60b20c6e
20
lib/Makefile
20
lib/Makefile
@ -31,6 +31,8 @@ $(X)BCHECK_O = bcheck.o
|
||||
|
||||
ifeq ($(CONFIG_musl)$(CONFIG_uClibc),yes)
|
||||
BCHECK_O =
|
||||
else
|
||||
DSO_O = dsohandle.o
|
||||
endif
|
||||
|
||||
ifdef CONFIG_OSX
|
||||
@ -43,18 +45,18 @@ ARM_O = libtcc1.o armeabi.o alloca-arm.o armflush.o
|
||||
ARM64_O = lib-arm64.o
|
||||
WIN_O = crt1.o crt1w.o wincrt1.o wincrt1w.o dllcrt1.o dllmain.o
|
||||
|
||||
OBJ-i386 = $(I386_O) $(BCHECK_O)
|
||||
OBJ-x86_64 = $(X86_64_O) va_list.o $(BCHECK_O)
|
||||
OBJ-i386 = $(I386_O) $(BCHECK_O) $(DSO_O)
|
||||
OBJ-x86_64 = $(X86_64_O) va_list.o $(BCHECK_O) $(DSO_O)
|
||||
OBJ-x86_64-osx = $(X86_64_O) va_list.o
|
||||
OBJ-i386-win32 = $(I386_O) chkstk.o bcheck.o $(WIN_O)
|
||||
OBJ-x86_64-win32 = $(X86_64_O) chkstk.o bcheck.o $(WIN_O)
|
||||
OBJ-arm64 = $(ARM64_O)
|
||||
OBJ-arm = $(ARM_O)
|
||||
OBJ-arm-fpa = $(ARM_O)
|
||||
OBJ-arm-fpa-ld = $(ARM_O)
|
||||
OBJ-arm-vfp = $(ARM_O)
|
||||
OBJ-arm-eabi = $(ARM_O)
|
||||
OBJ-arm-eabihf = $(ARM_O)
|
||||
OBJ-arm64 = $(ARM64_O) $(DSO_O)
|
||||
OBJ-arm = $(ARM_O) $(DSO_O)
|
||||
OBJ-arm-fpa = $(ARM_O) $(DSO_O)
|
||||
OBJ-arm-fpa-ld = $(ARM_O) $(DSO_O)
|
||||
OBJ-arm-vfp = $(ARM_O) $(DSO_O)
|
||||
OBJ-arm-eabi = $(ARM_O) $(DSO_O)
|
||||
OBJ-arm-eabihf = $(ARM_O) $(DSO_O)
|
||||
OBJ-arm-wince = $(ARM_O) $(WIN_O)
|
||||
|
||||
$(BIN) : $(patsubst %.o,$(X)%.o,$(OBJ-$T))
|
||||
|
1
lib/dsohandle.c
Normal file
1
lib/dsohandle.c
Normal file
@ -0,0 +1 @@
|
||||
void * __dso_handle __attribute((visibility("hidden"))) = &__dso_handle;
|
Loading…
Reference in New Issue
Block a user