summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-03-26 10:58:35 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-03-30 11:05:22 +0000
commitf484427d10a5ff6c2437c2f7c671e9e552ad6766 (patch)
treee037284cc453e74649e92cfb260fad279bbbf6ae /ArmVirtPkg
parent77ea6b547ebed267ec409d47c49e1663750955d3 (diff)
downloadedk2-f484427d10a5ff6c2437c2f7c671e9e552ad6766.tar.gz
edk2-f484427d10a5ff6c2437c2f7c671e9e552ad6766.tar.bz2
edk2-f484427d10a5ff6c2437c2f7c671e9e552ad6766.zip
ArmPkg, BaseTools AARCH64: Add BTI ELF note to .hii objects
The ELF based toolchains use objcopy to create HII object files, which contain only a single .hii section. This means no GNU note is inserted that describes the object as compatible with BTI, even though the lack of executable code in such an object makes the distinction irrelevant. However, the linker will not add the note globally to the resulting ELF executable, and this breaks BTI compatibility. So let's insert a GNU BTI-compatible ELF note by hand when generating such object files. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com>
Diffstat (limited to 'ArmVirtPkg')
0 files changed, 0 insertions, 0 deletions