> 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