aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elfarc.sc
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@gmail.com>2020-01-13 11:16:47 +0200
committerClaudiu Zissulescu <claziss@gmail.com>2020-01-13 11:16:47 +0200
commit8cb31badff78ca9cdda0c90ba53b6cfd7d8bd423 (patch)
treef8a2a5b2ec1e2472a24ca9365d60032cb7d4f185 /ld/scripttempl/elfarc.sc
parentb9fe6b8aa6c7d662291764d22da09ad9f7c0288a (diff)
downloadgdb-8cb31badff78ca9cdda0c90ba53b6cfd7d8bd423.zip
gdb-8cb31badff78ca9cdda0c90ba53b6cfd7d8bd423.tar.gz
gdb-8cb31badff78ca9cdda0c90ba53b6cfd7d8bd423.tar.bz2
[ARC][committed] Use DWARF.sc in elf linker script templates.
xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com> * elfarcv2.sc : Allow interrupt vector table to be located at an arbitrary address. Use DWARF.sc file. * elfarc.sc: Use DWARF.sc file.
Diffstat (limited to 'ld/scripttempl/elfarc.sc')
-rw-r--r--ld/scripttempl/elfarc.sc36
1 files changed, 5 insertions, 31 deletions
diff --git a/ld/scripttempl/elfarc.sc b/ld/scripttempl/elfarc.sc
index 0390e05..8851c77 100644
--- a/ld/scripttempl/elfarc.sc
+++ b/ld/scripttempl/elfarc.sc
@@ -408,40 +408,14 @@ cat <<EOF
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
+ .note.gnu.build-id : { *(.note.gnu.build-id) }
+EOF
- /* DWARF debug sections.
- Symbols in the DWARF debugging sections are relative to the beginning
- of the section so we begin them at 0. */
-
- /* DWARF 1 */
- .debug 0 : { *(.debug) }
- .line 0 : { *(.line) }
-
- /* GNU DWARF 1 extensions */
- .debug_srcinfo 0 : { *(.debug_srcinfo) }
- .debug_sfnames 0 : { *(.debug_sfnames) }
-
- /* DWARF 1.1 and DWARF 2 */
- .debug_aranges 0 : { *(.debug_aranges) }
- .debug_pubnames 0 : { *(.debug_pubnames) }
-
- /* DWARF 2 */
- .debug_info 0 : { *(.debug_info${RELOCATING+ .gnu.linkonce.wi.*}) }
- .debug_abbrev 0 : { *(.debug_abbrev) }
- .debug_line 0 : { *(.debug_line) }
- .debug_frame 0 : { *(.debug_frame) }
- .debug_str 0 : { *(.debug_str) }
- .debug_loc 0 : { *(.debug_loc) }
- .debug_macinfo 0 : { *(.debug_macinfo) }
-
- /* SGI/MIPS DWARF 2 extensions */
- .debug_weaknames 0 : { *(.debug_weaknames) }
- .debug_funcnames 0 : { *(.debug_funcnames) }
- .debug_typenames 0 : { *(.debug_typenames) }
- .debug_varnames 0 : { *(.debug_varnames) }
+. $srcdir/scripttempl/DWARF.sc
+cat <<EOF
/* ARC Extension Sections */
- .arcextmap 0 : { *(.gnu.linkonce.arcextmap.*) }
+ .arcextmap 0 : { *(.arcextmap.*) }
${OTHER_SECTIONS}
${RELOCATING+${OTHER_END_SYMBOLS}}