[RFC/PATCH] ldso: drop -Wl,-e,_start linking option
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: This is a digitally signed message part.
More information about the uClibc