aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-06-19 02:05:53 +0000
committerAlan Modra <amodra@gmail.com>2000-06-19 02:05:53 +0000
commit987fd5b44e803e8bd04c9955dd9719c5de28a621 (patch)
treeba7e78d73be28cd0613f181f1ea18a755e3f0a16 /ld
parent60bcf0fa8c115b4e71d7b1372aca3efccffc9607 (diff)
downloadgdb-987fd5b44e803e8bd04c9955dd9719c5de28a621.zip
gdb-987fd5b44e803e8bd04c9955dd9719c5de28a621.tar.gz
gdb-987fd5b44e803e8bd04c9955dd9719c5de28a621.tar.bz2
Update list of targets supporting --gc-sections.
KEEP .eh_frame contents.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/NEWS4
-rw-r--r--ld/scripttempl/elf.sc2
-rw-r--r--ld/scripttempl/elfd30v.sc2
4 files changed, 12 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2e0b963..4bab41c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2000-06-18 Alan Modra <alan@linuxcare.com.au>
+
+ * NEWS: Update list of targets supporting --gc-sections.
+
+ * scripttempl/elf.sc: KEEP .eh_frame contents.
+ * scripttempl/elfd30v.sc: Same here.
+
2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
* Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
diff --git a/ld/NEWS b/ld/NEWS
index df6446d..245808c 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -16,7 +16,9 @@ Changes in version 2.10:
* Added garbage collection of unused sections, enabled by --gc-sections.
It does require a bit of backend support; currently implemented are
- ppc-elf, mips-elf, and mn10300-elf. Others will ignore the option.
+ avr-elf, d10v-elf, fr30-elf, i386-elf, m32r-elf, m68k-elf, mcore-elf,
+ mips-elf, mn10300-elf, ppc-elf, sh-elf, sparc-elf, and v850-elf.
+ Others will ignore the option.
* Added SORT to the linker script language to permit sorting sections by file
name or section name.
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index b650073..0e56d8a 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -244,7 +244,7 @@ SECTIONS
${CONSTRUCTING+SORT(CONSTRUCTORS)}
}
.data1 ${RELOCATING-0} : { *(.data1) }
- .eh_frame : { *(.eh_frame) }
+ .eh_frame : { KEEP (*(.eh_frame)) }
.gcc_except_table : { *(.gcc_except_table) }
${WRITABLE_RODATA+${RODATA}}
${RELOCATING+${OTHER_READWRITE_SECTIONS}}
diff --git a/ld/scripttempl/elfd30v.sc b/ld/scripttempl/elfd30v.sc
index aecc3e5..50d51f2 100644
--- a/ld/scripttempl/elfd30v.sc
+++ b/ld/scripttempl/elfd30v.sc
@@ -121,7 +121,7 @@ SECTIONS
.rodata ${RELOCATING-0} : { *(.rodata) } ${RELOCATING+ > ${DATA_MEMORY}}
/* C++ exception support. */
- .eh_frame ${RELOCATING-0} : { *(.eh_frame) } ${RELOCATING+ > ${DATA_MEMORY}}
+ .eh_frame ${RELOCATING-0} : { KEEP (*(.eh_frame)) } ${RELOCATING+ > ${DATA_MEMORY}}
.gcc_except_table ${RELOCATING-0} : { *(.gcc_except_table) } ${RELOCATING+ > ${DATA_MEMORY}}
${RELOCATING+${CTOR}}