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:
parent
93237fcdde
commit
1d59d3afed
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue