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)
Mon, Jul 22, 7:42 AM
Unknown Object (File)
Wed, Jul 17, 2:59 AM
Unknown Object (File)
Tue, Jul 16, 12:44 PM
Unknown Object (File)
Sun, Jul 14, 4:25 PM
Unknown Object (File)
Sun, Jul 14, 3:40 PM
Unknown Object (File)
Sun, Jul 14, 10:42 AM
Unknown Object (File)
Fri, Jul 12, 12:38 PM
Unknown Object (File)
Wed, Jul 10, 4:16 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