linker: warn about orphan sections
This adds a linker flag and necessary changes to linker scripts so that linker will warn about orphan sections. Relates to #5534. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
08c165f2b0
commit
8ce758a8ff
25 changed files with 397 additions and 0 deletions
|
@ -73,6 +73,9 @@ MEMORY {
|
|||
}
|
||||
|
||||
SECTIONS {
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
GROUP_START(ROMABLE_REGION)
|
||||
|
||||
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,ALIGN(1024)) {
|
||||
|
@ -283,4 +286,7 @@ SECTIONS {
|
|||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
|
||||
#include <linker/debug-sections.ld>
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue