This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PIE and --(no-)export-dynamic
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