Page MenuHomeFreeBSD

bsd.linker.mk: add retpolineplt linker feature
ClosedPublic

Authored by emaste on Feb 6 2018, 8:09 PM.
Tags
None
Referenced Files
F108016568: D14228.id38977.diff
Mon, Jan 20, 1:52 PM
Unknown Object (File)
Fri, Jan 17, 12:06 PM
Unknown Object (File)
Tue, Dec 31, 3:41 PM
Unknown Object (File)
Tue, Dec 31, 2:44 AM
Unknown Object (File)
Dec 13 2024, 1:24 PM
Unknown Object (File)
Dec 12 2024, 11:27 AM
Unknown Object (File)
Nov 25 2024, 8:31 PM
Unknown Object (File)
Nov 25 2024, 1: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.