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
Unknown Object (File)
Wed, Oct 23, 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
Unknown Object (File)
Sep 3 2024, 8:31 AM
Unknown Object (File)
Sep 3 2024, 8:31 AM
Unknown Object (File)
Sep 3 2024, 8:31 AM
Unknown Object (File)
Sep 3 2024, 8:18 AM
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 Not Applicable
Unit
Tests Not Applicable

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