svn commit: branches/uClibc_0_9_30

aldot at uclibc.org aldot at uclibc.org
Wed Jan 14 16:03:25 UTC 2009


Author: aldot
Date: 2009-01-14 16:03:24 +0000 (Wed, 14 Jan 2009)
New Revision: 24839

Log:
- pull 24836:24838 from trunk (2 of psm's small fixes)


Modified:
   branches/uClibc_0_9_30/Makerules
   branches/uClibc_0_9_30/Rules.mak


Changeset:
Modified: branches/uClibc_0_9_30/Makerules
===================================================================
--- branches/uClibc_0_9_30/Makerules	2009-01-14 16:01:02 UTC (rev 24838)
+++ branches/uClibc_0_9_30/Makerules	2009-01-14 16:03:24 UTC (rev 24839)
@@ -308,7 +308,7 @@
 	$(Q)$(INSTALL) -d $(dir $@)
 	$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
 	$(Q)echo "#include <features.h>" >> $@
-	$(Q)echo "const char __dl_ldso__[] __attribute__ ((section " \
+	$(Q)echo "const char __dl_ldso__[] attribute_hidden __attribute__ ((weak)) __attribute__ ((section " \
 		"(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@
 
 $(interp): $(top_builddir)lib/interp.c

Modified: branches/uClibc_0_9_30/Rules.mak
===================================================================
--- branches/uClibc_0_9_30/Rules.mak	2009-01-14 16:01:02 UTC (rev 24838)
+++ branches/uClibc_0_9_30/Rules.mak	2009-01-14 16:03:24 UTC (rev 24839)
@@ -421,9 +421,10 @@
 endif
 # We need to keep track of both the CC PIE flag (above) as
 # well as the LD PIE flag (below) because we can't rely on
-# gcc passing -pie if we used -fPIE
+# gcc passing -pie if we used -fPIE. We need to directly use -pie
+# instead of -Wl,-pie as gcc picks up the wrong startfile/endfile
 ifndef LDPIEFLAG
-export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-Wl,-pie")
+export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-pie")
 endif
 
 # Check for AS_NEEDED support in linker script (binutils>=2.16.1 has it)



More information about the uClibc-cvs mailing list