From 1d59d3afed92543ef0a4d323f9cd0a43ce222b49 Mon Sep 17 00:00:00 2001 From: Abhishek Shah Date: Sun, 16 Feb 2020 01:33:09 +0530 Subject: [PATCH] arch: arm: aarch64: linker: Discard plt and got sections plt and got sections are used for dynamic linking which is not supported in Zephyr. Reference: #11953 commit 3ba7097e7326 ("linker: add orphan sections to linker script") Signed-off-by: Abhishek Shah --- include/arch/arm/aarch64/scripts/linker.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/arch/arm/aarch64/scripts/linker.ld b/include/arch/arm/aarch64/scripts/linker.ld index c3c74d4ec7b..84eafaabc33 100644 --- a/include/arch/arm/aarch64/scripts/linker.ld +++ b/include/arch/arm/aarch64/scripts/linker.ld @@ -100,12 +100,12 @@ SECTIONS * .plt and .iplt are here according to 'arm-zephyr-elf-ld --verbose', * before text section. */ - SECTION_PROLOGUE(.plt,,) + /DISCARD/ : { *(.plt) } - SECTION_PROLOGUE(.iplt,,) + /DISCARD/ : { *(.iplt) } @@ -240,7 +240,7 @@ SECTIONS * These are here according to 'arm-zephyr-elf-ld --verbose', * before data section. */ - SECTION_PROLOGUE(.got,,) + /DISCARD/ : { *(.got.plt) *(.igot.plt)