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 3ba7097e73 ("linker: add orphan sections to linker script")

Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com>
This commit is contained in:
Abhishek Shah 2020-02-16 01:33:09 +05:30 committed by Johan Hedberg
commit 1d59d3afed

View file

@ -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)