Page MenuHomeFreeBSD

linux64: Fix the build on arm64 with bti checking
ClosedPublic

Authored by andrew on Jun 3 2024, 4:21 PM.
Tags
None
Referenced Files
F105110751: D45468.diff
Thu, Dec 12, 12:08 PM
Unknown Object (File)
Thu, Dec 5, 7:10 PM
Unknown Object (File)
Thu, Dec 5, 9:01 AM
Unknown Object (File)
Sun, Nov 24, 2:34 PM
Unknown Object (File)
Oct 23 2024, 11:55 PM
Unknown Object (File)
Oct 11 2024, 3:08 PM
Unknown Object (File)
Oct 7 2024, 9:05 AM
Unknown Object (File)
Sep 19 2024, 5:34 PM
Subscribers

Details

Summary

When we enable checking for BTI on arm64 we need to include an ELF
not in all object files linked into a module.

As using objcopy from a binary to an ELF object file doesn't add the
note switch to using .incbin from an assembly file. This allows us to
add the needed note without affecting the included object.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58024
Build 54912: arc lint + arc unit

Event Timeline

andrew requested review of this revision.Jun 3 2024, 4:21 PM

Getting rid of ${OBJCOPY_TARGET} is a nice side effect

This revision is now accepted and ready to land.Jun 3 2024, 4:24 PM

I rather like this for some reason.

s/not/note/ in the commit message