aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2020-09-10 14:13:49 +0000
committerAndrew Turner <andrew@FreeBSD.org>2020-09-10 14:13:49 +0000
commit6215ed7c5c0e8cdd536123ec658a081748cfc85c (patch)
tree901766c2788442e00e2d6c524788fa20906951cc
parentcb9050dd21b28f6e735649556ca63d09c4ba4efb (diff)
downloadsrc-6215ed7c5c0e8cdd536123ec658a081748cfc85c.tar.gz
src-6215ed7c5c0e8cdd536123ec658a081748cfc85c.zip
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
Notes
Notes: svn path=/head/; revision=365578
-rw-r--r--stand/efi/loader/arch/arm64/ldscript.arm641
1 files changed, 1 insertions, 0 deletions
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) }
}