From 2f16c0ab1c4010aa4702e1060ea6fdcc2f5dc94b Mon Sep 17 00:00:00 2001 From: Hesham Almatary Date: Tue, 25 Jul 2023 11:01:24 +0100 Subject: [PATCH] elfloader/linker/arm: Remove unncessary sections and directives When building with LLVM/lld, they trigger a linking error as .hash and .interp don't exist. Closes #172 Sponsored by: DARPA. Signed-off-by: Hesham Almatary --- elfloader-tool/src/arch-arm/linker.lds | 8 -------- 1 file changed, 8 deletions(-) diff --git a/elfloader-tool/src/arch-arm/linker.lds b/elfloader-tool/src/arch-arm/linker.lds index f7de12cf..4492697a 100644 --- a/elfloader-tool/src/arch-arm/linker.lds +++ b/elfloader-tool/src/arch-arm/linker.lds @@ -9,12 +9,6 @@ #include "image_start_addr.h" -SECTIONS -{ - .interp : { *(.interp) } -} -INSERT BEFORE .hash; - SECTIONS { . = IMAGE_START_ADDR; @@ -24,7 +18,6 @@ SECTIONS *(.text.start) } } -INSERT BEFORE .text; SECTIONS { @@ -48,4 +41,3 @@ SECTIONS _archive_end = .; } } -INSERT AFTER .eh_frame;