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)