git: 5f9186c384db - stable/12 - Ignore the .interp section in the arm64 EFI loader
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Oct 2021 16:09:07 UTC
The branch stable/12 has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=5f9186c384db6886a1079fd0477ce008125ba9e4
commit 5f9186c384db6886a1079fd0477ce008125ba9e4
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2020-09-10 14:13:49 +0000
Commit: Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-08 08:12:10 +0000
Ignore the .interp section in the arm64 EFI loader
When building the loader an unneeded .interp section may be added. Move
this to the unused section region so offsets of used sections don't
change.
Obtained from: CheriBSD
Sponsored by: Innovate UK
(cherry picked from commit 6215ed7c5c0e8cdd536123ec658a081748cfc85c)
---
stand/efi/loader/arch/arm64/ldscript.arm64 | 1 +
1 file changed, 1 insertion(+)
diff --git a/stand/efi/loader/arch/arm64/ldscript.arm64 b/stand/efi/loader/arch/arm64/ldscript.arm64
index 685c0967840d..d0ed320a319c 100644
--- a/stand/efi/loader/arch/arm64/ldscript.arm64
+++ b/stand/efi/loader/arch/arm64/ldscript.arm64
@@ -80,6 +80,7 @@ SECTIONS
_edata = .;
/* Unused sections */
+ .interp : { *(.interp) }
.dynstr : { *(.dynstr) }
.hash : { *(.hash) }
}