PIE and --(no-)export-dynamic

Peter Hjalmarsson xake@rymdraket.net
Sun Mar 21 12:31:00 GMT 2010


sön 2010-03-21 klockan 22:19 +1030 skrev Alan Modra:
> 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.
> 

Should I file a bug?



More information about the Binutils mailing list