Created attachment 205535 [details]
Patch unconditionally enabling secure-PLT for FreeBSD/powerpc*
The attached patch, probably incomplete, enables secure PLT for powerpc* (powerpc, powerpcspe, powerpc64). The "correct" way would probably be to enable it only for 12 and later (12 will be getting secure-PLT in base after a 1 month burn-in period in head).
Andreas, what is your take?
IMO this should go upstream (GCC 10, ideally also GCC 9) first.
Hm, the linker option --secure-plt is not known to 64-bit ld, do I miss something?
Andreas, I see the same thing. secure-plt really should be configured, in the specs config, as only enabled if -m32 is specified, since it's *only* for 32-bit powerpc. So maybe that can be done by changing secureplt.h? I have no idea.
Well, I need some time. Currently native buildworld doesn't complete due to this --secure-plt in bsd.cpu.mk. The gen* helpers die during building system gcc.