Browse Source

buildsys: Add missing $(SYMBOL_PREFIX) to symbol names

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Markos Chandras 11 years ago
parent
commit
f4fe313d50
5 changed files with 4 additions and 9 deletions
  1. 1 1
      Makerules
  2. 1 1
      ldso/ldso/Makefile.in
  3. 0 5
      ldso/ldso/bfin/dl-startup.h
  4. 1 1
      ldso/libdl/Makefile.in
  5. 1 1
      libpthread/nptl/Makefile.in

+ 1 - 1
Makerules

@@ -304,7 +304,7 @@ define create-lds
 	-Wl,-z,relro -Wl,--hash-style=gnu -Wl,-z,defs \
 	-Wl,--verbose 2>&1 | LC_ALL=C \
 	sed -e '/^=========/,/^=========/!d;/^=========/d' \
-	-e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' > $@.lds
+	-e 's/\. = .* + SIZEOF_HEADERS;/& $(SYMBOL_PREFIX)_begin = . - SIZEOF_HEADERS;/' > $@.lds
 endef
 
 define link.so

+ 1 - 1
ldso/ldso/Makefile.in

@@ -36,7 +36,7 @@ LDFLAGS-$(UCLIBC_LDSO_NAME).so := $(LDFLAGS)
 else
 LDFLAGS-$(UCLIBC_LDSO_NAME).so := $(LDFLAGS_NOSTRIP) -Wl,-z,defs
 endif
-LDFLAGS-$(UCLIBC_LDSO_NAME).so += -Wl,-e,_start -Wl,-z,now -Wl,-Bsymbolic \
+LDFLAGS-$(UCLIBC_LDSO_NAME).so += -Wl,-e,$(SYMBOL_PREFIX)_start -Wl,-z,now -Wl,-Bsymbolic \
 	-Wl,--export-dynamic $(CFLAG_-Wl--sort-common) -Wl,--discard-locals \
 	$(CFLAG_-Wl--discard-all) -Wl,--no-undefined
 

+ 0 - 5
ldso/ldso/bfin/dl-startup.h

@@ -39,12 +39,7 @@ __asm__(
 	"	.text\n"
 	"	.global	__start\n"
 	"	.type	__start,@function\n"
-	/* Build system expects a "_start" for the entry point;
-	   provide it as it's free to do so with aliases.  */
 	"	.hidden	__start\n"
-	"	.set	_start, __start\n"
-	"	.global	_start\n"
-	"	.hidden	_start\n"
 	"__start:\n"
 	"	call	.Lcall\n"
 	".Lcall:\n"

+ 1 - 1
ldso/libdl/Makefile.in

@@ -23,7 +23,7 @@ LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libdl.so := -Wl,--dsbt-index=3
 LDFLAGS-libdl.so := $(LDFLAGS)
 
 ifeq ($(LDSO_NO_CLEANUP),)
-LDFLAGS-libdl.so += -Wl,-fini,dl_cleanup
+LDFLAGS-libdl.so += -Wl,-fini,$(SYMBOL_PREFIX)dl_cleanup
 endif
 
 LIBS-libdl.so := $(LIBS) $(ldso)

+ 1 - 1
libpthread/nptl/Makefile.in

@@ -145,7 +145,7 @@ LDFLAGS-libpthread.so += $(LDFLAGS)
 endif
 
 LDFLAGS-libpthread.so += $(top_builddir)lib/$(UCLIBC_LDSO_NAME)-$(VERSION).so $(top_builddir)lib/libdl-$(VERSION).so \
-	-Wl,-z,nodelete,-z,initfirst,-init=__pthread_initialize_minimal_internal
+	-Wl,-z,nodelete,-z,initfirst,-init=$(SYMBOL_PREFIX)__pthread_initialize_minimal_internal
 
 LIBS-libpthread.so := $(LIBS)