diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-03-26 10:58:35 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-30 11:05:22 +0000 |
commit | f484427d10a5ff6c2437c2f7c671e9e552ad6766 (patch) | |
tree | e037284cc453e74649e92cfb260fad279bbbf6ae /ArmPkg/Library/GnuNoteBti.bin | |
parent | 77ea6b547ebed267ec409d47c49e1663750955d3 (diff) | |
download | edk2-f484427d10a5ff6c2437c2f7c671e9e552ad6766.zip edk2-f484427d10a5ff6c2437c2f7c671e9e552ad6766.tar.gz edk2-f484427d10a5ff6c2437c2f7c671e9e552ad6766.tar.bz2 |
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 'ArmPkg/Library/GnuNoteBti.bin')
-rw-r--r-- | ArmPkg/Library/GnuNoteBti.bin | bin | 0 -> 32 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/ArmPkg/Library/GnuNoteBti.bin b/ArmPkg/Library/GnuNoteBti.bin Binary files differnew file mode 100644 index 0000000..339567b --- /dev/null +++ b/ArmPkg/Library/GnuNoteBti.bin |