[RFC/PATCH] ldso: drop -Wl,-e,_start linking option
Mike Frysinger
vapier at gentoo.org
Tue Mar 27 15:30:15 UTC 2012
On Tuesday 27 March 2012 10:35:42 Khem Raj wrote:
> On Mon, Mar 26, 2012 at 9:10 PM, Mike Frysinger wrote:
> > On Sunday 25 March 2012 23:00:59 Mike Frysinger wrote:
> >> it should be easy to add aliases via .set for both mips and blackfin
> >> (and prob h8300, although that doesn't have a ldso port) so _start ==
> >> __start. i don't think there would be runtime penalties for this as
> >> long as the symbol has hidden visibility.
> >
> > ok, by keeping the -Wl,-e,_start and adding an alias to the Blackfin
> > code, everyone should be happy. symbol aliases are free since we throw
> > away this symbol from the public ABI. thanks guys!
>
> I use _start to stop gdb when debugging ld.so
yes, by hiding the symbol, the stripped version will no longer have it, and so
you can't break on "_start" without loading debug/split symbols. you still at
least have via the address and the ELF's ehdr. i think this is something we
should be shipping with as every symbol that is exported from the ldso incurs
additional runtime penalties. and i think we all agree that the ldso should
not be exporting a "_start" symbol.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120327/50a72f7f/attachment-0001.asc>
More information about the uClibc
mailing list