mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
* ldmain.c (main): Error if --gc-sections and
dyanmic linking. * scripttempl/v850.sc: Add KEEP attribute to .init, .fini, .dtors and .ctors. Add .data and .text wildcards to support section garbage collection.
This commit is contained in:
parent
d284b1f7c5
commit
64923bb947
@ -1,3 +1,11 @@
|
||||
Mon Oct 5 09:40:43 1998 Catherine Moore <clm@cygnus.com>
|
||||
|
||||
* ldmain.c (main): Error if --gc-sections and
|
||||
dyanmic linking.
|
||||
* scripttempl/v850.sc: Add KEEP attribute to .init,
|
||||
.fini, .dtors and .ctors. Add .data and .text
|
||||
wildcards to support section garbage collection.
|
||||
|
||||
Wed Sep 30 11:19:15 1998 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* scripttempl/v850.sc: Rename .call_table section to
|
||||
|
@ -55,11 +55,12 @@ SECTIONS
|
||||
.rela.bss : { *(.rela.bss) }
|
||||
.rel.plt : { *(.rel.plt) }
|
||||
.rela.plt : { *(.rela.plt) }
|
||||
.init : { *(.init) } =0
|
||||
.init : { KEEP (*(.init)) } =0
|
||||
.plt : { *(.plt) }
|
||||
|
||||
.text : {
|
||||
*(.text)
|
||||
${RELOCATING+*(.text.*)}
|
||||
/* .gnu.warning sections are handled specially by elf32.em. */
|
||||
*(.gnu.warning)
|
||||
*(.gnu.linkonce.t*)
|
||||
@ -83,25 +84,26 @@ SECTIONS
|
||||
|
||||
/* end-sanitize-v850e */
|
||||
|
||||
.fini : { *(.fini) } =0
|
||||
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
|
||||
.fini : { KEEP (*(.fini)) } =0
|
||||
.rodata : { *(.rodata) ${RELOCATING+*(.rodata.*)} *(.gnu.linkonce.r*) }
|
||||
.rodata1 : { *(.rodata1) }
|
||||
|
||||
.data : {
|
||||
*(.data)
|
||||
${RELOCATING+*(.data.*)}
|
||||
*(.gnu.linkonce.d*)
|
||||
CONSTRUCTORS
|
||||
}
|
||||
.data1 : { *(.data1) }
|
||||
.ctors : {
|
||||
${RELOCATING+___ctors = .;}
|
||||
*(.ctors)
|
||||
KEEP (*(.ctors))
|
||||
${RELOCATING+___ctors_end = .;}
|
||||
}
|
||||
|
||||
.dtors : {
|
||||
${RELOCATING+___dtors = .;}
|
||||
*(.dtors)
|
||||
KEEP (*(.dtors))
|
||||
${RELOCATING+___dtors_end = .;}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user