https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65886

Florian Weimer <fw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fw at gcc dot gnu.org

--- Comment #38 from Florian Weimer <fw at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #28)
> (In reply to Thiago Macieira from comment #27)
> > (In reply to Jakub Jelinek from comment #26)
> > > Plus, if KDE uses so small binaries, why don't just compile them with 
> > > -fPIC
> > > then?
> > > You can then link them as normal executables or PIEs, depending on what 
> > > you
> > > prefer, and still it supposedly wouldn't use copy relocations, as all
> > > references to externals would be through .got.
> > 
> > Can you guarantee that the linker won't generate copy relocs for -fPIC?
> 
> Yes.

I do not think this follows from the ELF specification, so portable
applications cannot assume this.  Considering the recent proliferation of link
editors, relying on specific BFD ld behavior seems increasingly unwise.

(Not sure why this bug is marked RESOLVED/FIXED—shouldn't it be INVALID?)

Reply via email to