soc: andestech: linker.ld: Handle symtab/strtab/shstrtab to fix warnings
lld will produce warnings for the symtab, strtab, and shstrtab sections
if --orphan-handling=warn is specified and there are no matching rules
in the linker script for these sections. Handle these sections when
building with lld to prevent the warnings.
This is exactly the same as commit
c420733c33
, but for the AE350 linker
script.
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
This commit is contained in:
parent
c5429d3204
commit
7f0cd6692b
1 changed files with 9 additions and 0 deletions
|
@ -405,6 +405,15 @@ GROUP_END(DTCM)
|
|||
KEEP(*(.gnu.attributes))
|
||||
}
|
||||
|
||||
/* Output section descriptions are needed for these sections to suppress
|
||||
* warnings when "--orphan-handling=warn" is set for lld.
|
||||
*/
|
||||
#if defined(CONFIG_LLVM_USE_LLD)
|
||||
SECTION_PROLOGUE(.symtab, 0,) { *(.symtab) }
|
||||
SECTION_PROLOGUE(.strtab, 0,) { *(.strtab) }
|
||||
SECTION_PROLOGUE(.shstrtab, 0,) { *(.shstrtab) }
|
||||
#endif
|
||||
|
||||
/* Sections generated from 'zephyr,memory-region' nodes */
|
||||
LINKER_DT_SECTIONS()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue