From: Alan Modra Date: Mon, 19 Jun 2000 02:31:27 +0000 (+0000) Subject: Update NEWS to what's really in 2.10 X-Git-Tag: binutils-2_10_1~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5856ff48f6565391b39f858d8cab3dce684a0cde;p=thirdparty%2Fbinutils-gdb.git Update NEWS to what's really in 2.10 KEEP .eh_frame contents rth's .gcc_except_table change to elfd30v.sc --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 612d0980275..6c950ff2a51 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2000-06-18 Alan Modra + + * NEWS: Update list of targets supporting --gc-sections. + + * scripttempl/elf.sc: KEEP .eh_frame contents. + * scripttempl/elfd30v.sc: Same here. + 2000-05-22 David O'Brien * configure.tgt: Recognize alpha-*-freebsd*. @@ -38,6 +45,10 @@ * ld.h: Correctly check GCC version. +2000-04-21 Richard Henderson + + * scripttempl/elfd30v.sc: Place .gcc_except_table. + 2000-04-19 Alan Modra * ld.texinfo (Simple Example): Remove extraneous paragraph. diff --git a/ld/NEWS b/ld/NEWS index 2c2340f385e..95062014c61 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -2,9 +2,14 @@ Changes in version 2.10: +* Added AT> to the linker script language to allow load-time allocation of + sections into regions. + * 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 ccc4b914093..6c4741b3c55 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -234,7 +234,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}} @@ -242,7 +242,7 @@ SECTIONS ${RELOCATING+${DTOR}} ${DATA_PLT+${PLT}} ${RELOCATING+${OTHER_GOT_SYMBOLS}} - .got ${RELOCATING-0} : { *(.got.plt) *(.got) } + .got ${RELOCATING-0} : { *(.got.plt) *(.got) } ${TEXT_DYNAMIC-${DYNAMIC}} /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so diff --git a/ld/scripttempl/elfd30v.sc b/ld/scripttempl/elfd30v.sc index 0ff928345be..f33f90ce14b 100644 --- a/ld/scripttempl/elfd30v.sc +++ b/ld/scripttempl/elfd30v.sc @@ -121,7 +121,8 @@ 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}} ${RELOCATING+${DTOR}} @@ -213,7 +214,3 @@ SECTIONS PROVIDE (__stack = ${STACK_START_ADDR}); } EOF - - - -