PIE and --(no-)export-dynamic
Alan Modra
amodra@gmail.com
Sun Mar 21 12:03:00 GMT 2010
On Sat, Mar 20, 2010 at 10:34:59PM -0400, Daniel Jacobowitz wrote:
> I think Peter's got a point.
Agreed. The default behaviour for PIEs wrongly adds unnecessary
dynamic symbols.
> Why should a PIE version of vers4 export
> foo? Or, for that matter, main? No dynamic object references the
> symbol; it's just wasting space.
>
> MIPS used to have this same problem for dynamic applications; we
> (Richard S., I think, but I don't remember) fixed it just a year or
> two ago.
Yeah, code somewhere is testing link_info.shared when it should really
be using !link_info.executable.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list