[RFC/PATCH] ldso: drop -Wl,-e,_start linking option
Mike Frysinger
vapier at gentoo.org
Sun Mar 25 06:58:13 UTC 2012
The _start symbol is the default entry point for ELFs, so there should be
no need to manually specify this. The background motivation is that this
causes issues for ports that have a symbol prefix (like Blackfin) and so
they don't have a "_start" symbol -- it's named "__start".
This was added in commit 462d544629128dec0094ffea1275d62e9581934d with the
reason "fix ldso for mips", but I can't see why this would matter since it
has a proper _start symbol.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
ldso/ldso/Makefile.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ldso/ldso/Makefile.in b/ldso/ldso/Makefile.in
index eb1570a..629468e 100644
--- a/ldso/ldso/Makefile.in
+++ b/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,-z,now -Wl,-Bsymbolic \
-Wl,--export-dynamic $(CFLAG_-Wl--sort-common) -Wl,--discard-locals \
$(CFLAG_-Wl--discard-all) -Wl,--no-undefined
--
1.7.8.5
More information about the uClibc
mailing list