]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/scripttempl/elfm9s12z.sc
Add --enable-linker-version option to bfd linker to add an entry in the .comment...
[thirdparty/binutils-gdb.git] / ld / scripttempl / elfm9s12z.sc
index aaa137b91961041f666dab4adebefbcbafba2d1b..d77e2130a98ef1c4b0006c3852f29c1b95bf539f 100644 (file)
@@ -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