diff options
Diffstat (limited to 'ld/scripttempl/elfm9s12z.sc')
-rw-r--r-- | ld/scripttempl/elfm9s12z.sc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ld/scripttempl/elfm9s12z.sc b/ld/scripttempl/elfm9s12z.sc index aaa137b9196..d77e2130a98 100644 --- a/ld/scripttempl/elfm9s12z.sc +++ b/ld/scripttempl/elfm9s12z.sc @@ -420,17 +420,11 @@ SECTIONS } ${RELOCATING+ > ${EEPROM_MEMORY}} ${RELOCATING+${VECTORS}} +EOF - /* Stabs debugging sections. */ - .stab 0 : { *(.stab) } - .stabstr 0 : { *(.stabstr) } - .stab.excl 0 : { *(.stab.excl) } - .stab.exclstr 0 : { *(.stab.exclstr) } - .stab.index 0 : { *(.stab.index) } - .stab.indexstr 0 : { *(.stab.indexstr) } - - .comment 0 : { *(.comment) } +. $srcdir/scripttempl/misc-sections.sc +cat <<EOF /* Treatment of DWARF debug section must be at end of the linker script to avoid problems when there are undefined symbols. It's necessary to avoid that the DWARF section is relocated before such undefined |