drop unused exidx sections when linking

clang might emit those even though they are neither needed or wanted,
so just get rid of them.

Change-Id: I159b4405cebe72af4d98b27f876c48835ffd6e2d
This commit is contained in:
Eric Wild 2021-10-20 16:42:28 +02:00
parent 90784220a5
commit af6ae8b8dd
2 changed files with 6 additions and 12 deletions

View File

@ -96,13 +96,10 @@ SECTIONS
_efixed = .; /* End of text section */
} > rom
/* .ARM.exidx is sorted, so has to go in its own output section. */
PROVIDE_HIDDEN (__exidx_start = .);
.ARM.exidx :
/DISCARD/ :
{
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} > rom
PROVIDE_HIDDEN (__exidx_end = .);
*(.ARM.exidx)
}
. = ALIGN(4);
_etext = .;

View File

@ -94,13 +94,10 @@ SECTIONS
_efixed = .; /* End of text section */
} > rom
/* .ARM.exidx is sorted, so has to go in its own output section. */
PROVIDE_HIDDEN (__exidx_start = .);
.ARM.exidx :
/DISCARD/ :
{
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
} > rom
PROVIDE_HIDDEN (__exidx_end = .);
*(.ARM.exidx)
}
. = ALIGN(4);
_etext = .;