Page MenuHomeFreeBSD

bsd.linker.mk: add retpolineplt linker feature
ClosedPublic

Authored by emaste on Feb 6 2018, 8:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 8:31 PM
Unknown Object (File)
Mon, Nov 25, 1:32 AM
Unknown Object (File)
Sun, Nov 24, 9:10 PM
Unknown Object (File)
Sun, Nov 24, 12:13 AM
Unknown Object (File)
Fri, Nov 22, 11:09 PM
Unknown Object (File)
Fri, Nov 22, 9:21 PM
Unknown Object (File)
Fri, Nov 22, 1:27 PM
Unknown Object (File)
Thu, Nov 21, 10:32 AM

Details

Summary

This feature indicates that the linker supports generating a PLT with the retpoline speculative execution vulnerability mitigation.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Include COMPILER_FEATURES

emaste added subscribers: imp, dim.

Quote COMPILER_FEATURES for CROSSENV as it may contain spaces

This looks good to me, though at some version gcc and BFD ld will also support retpoline, right? We can add that later...

One minor quibble.

share/mk/bsd.linker.mk
76 โ†—(On Diff #38977)

Are there places that LINKER_FEATURES need similar treatment?

This revision is now accepted and ready to land.Feb 6 2018, 11:03 PM
In D14228#298494, @dim wrote:

This looks good to me, though at some version gcc and BFD ld will also support retpoline, right? We can add that later...

Yes. Once the support appears in our gcc and binutils ports and we know the version we can add it.

share/mk/bsd.linker.mk
76 โ†—(On Diff #38977)

I did not find cases where LINKER_FEATURES is passed through the environment

This revision was automatically updated to reflect the committed changes.