Adding static-PIE support to binutils

Cary Coutant ccoutant@gmail.com
Wed Aug 19 04:55:00 GMT 2015


> Does static pie (ET_DYN with non-fixed load address, _DYNAMIC
> relocations, but no PT_INTERP, DT_NEEDEDs, or symbolic relocations)
> currently work with gold? If so, what is the way to request it? I
> would say it would make sense to try to do things the same, but from
> what you're saying it sounds like gold already significantly
> mismatches the bfd linker behavior...?

No, currently we reject -static and -pie when used together. But it
could be supported.

I don't think the differences are that significant in practice. In
common usage, gold and Gnu ld end up doing the same thing.

-cary



More information about the Binutils mailing list