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)
Thu, Jan 30, 2:03 AM
Unknown Object (File)
Sat, Jan 25, 2:06 AM
Unknown Object (File)
Mon, Jan 20, 1:52 PM
Unknown Object (File)
Fri, Jan 17, 12:06 PM
Unknown Object (File)
Dec 31 2024, 3:41 PM
Unknown Object (File)
Dec 31 2024, 2:44 AM
Unknown Object (File)
Dec 13 2024, 1:24 PM
Unknown Object (File)
Dec 12 2024, 11:27 AM

Details

Summary

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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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

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

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

This revision was automatically updated to reflect the committed changes.