* scripttempl/elf.sc: Put linkonce reloc section in other

appropriate reloc sections.
	* scripttempl/elfmips.sc: Add linkonce support.
	* scripttempl/elfppc.sc: Likewise.
This commit is contained in:
Ian Lance Taylor 1997-01-27 17:39:24 +00:00
parent ddc846e915
commit f5f212fb56
3 changed files with 31 additions and 11 deletions

View File

@ -1,3 +1,10 @@
Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/elf.sc: Put linkonce reloc section in other
appropriate reloc sections.
* scripttempl/elfmips.sc: Add linkonce support.
* scripttempl/elfppc.sc: Likewise.
Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com) Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
* emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the

View File

@ -68,12 +68,18 @@ SECTIONS
.dynstr ${RELOCATING-0} : { *(.dynstr) } .dynstr ${RELOCATING-0} : { *(.dynstr) }
.dynsym ${RELOCATING-0} : { *(.dynsym) } .dynsym ${RELOCATING-0} : { *(.dynsym) }
.hash ${RELOCATING-0} : { *(.hash) } .hash ${RELOCATING-0} : { *(.hash) }
.rel.text ${RELOCATING-0} : { *(.rel.text) } .rel.text ${RELOCATING-0} :
.rela.text ${RELOCATING-0} : { *(.rela.text) } { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rel.data ${RELOCATING-0} : { *(.rel.data) } .rela.text ${RELOCATING-0} :
.rela.data ${RELOCATING-0} : { *(.rela.data) } { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.rodata ${RELOCATING-0} : { *(.rel.rodata) } .rel.data ${RELOCATING-0} :
.rela.rodata ${RELOCATING-0} : { *(.rela.rodata) } { *(.rel.data) *(.rel.gnu.linkonce.d*) }
.rela.data ${RELOCATING-0} :
{ *(.rela.data) *(.rela.gnu.linkonce.d*) }
.rel.rodata ${RELOCATING-0} :
{ *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
.rela.rodata ${RELOCATING-0} :
{ *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
.rel.got ${RELOCATING-0} : { *(.rel.got) } .rel.got ${RELOCATING-0} : { *(.rel.got) }
.rela.got ${RELOCATING-0} : { *(.rela.got) } .rela.got ${RELOCATING-0} : { *(.rela.got) }
.rel.ctors ${RELOCATING-0} : { *(.rel.ctors) } .rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
@ -88,7 +94,7 @@ SECTIONS
.rela.bss ${RELOCATING-0} : { *(.rela.bss) } .rela.bss ${RELOCATING-0} : { *(.rela.bss) }
.rel.plt ${RELOCATING-0} : { *(.rel.plt) } .rel.plt ${RELOCATING-0} : { *(.rel.plt) }
.rela.plt ${RELOCATING-0} : { *(.rela.plt) } .rela.plt ${RELOCATING-0} : { *(.rela.plt) }
.rodata ${RELOCATING-0} : { *(.rodata) } .rodata ${RELOCATING-0} : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 ${RELOCATING-0} : { *(.rodata1) } .rodata1 ${RELOCATING-0} : { *(.rodata1) }
.init ${RELOCATING-0} : { *(.init) } =${NOP-0} .init ${RELOCATING-0} : { *(.init) } =${NOP-0}
.text ${RELOCATING-0} : .text ${RELOCATING-0} :
@ -98,6 +104,7 @@ SECTIONS
*(.stub) *(.stub)
/* .gnu.warning sections are handled specially by elf32.em. */ /* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning) *(.gnu.warning)
*(.gnu.linkonce.t*)
} =${NOP-0} } =${NOP-0}
${RELOCATING+_etext = .;} ${RELOCATING+_etext = .;}
${RELOCATING+PROVIDE (etext = .);} ${RELOCATING+PROVIDE (etext = .);}
@ -125,6 +132,7 @@ SECTIONS
{ {
${RELOCATING+${DATA_START_SYMBOLS}} ${RELOCATING+${DATA_START_SYMBOLS}}
*(.data) *(.data)
*(.gnu.linkonce.d*)
${CONSTRUCTING+CONSTRUCTORS} ${CONSTRUCTING+CONSTRUCTORS}
} }
.data1 ${RELOCATING-0} : { *(.data1) } .data1 ${RELOCATING-0} : { *(.data1) }

View File

@ -53,9 +53,12 @@ SECTIONS
.hash ${RELOCATING-0} : { *(.hash) } .hash ${RELOCATING-0} : { *(.hash) }
.dynsym ${RELOCATING-0} : { *(.dynsym) } .dynsym ${RELOCATING-0} : { *(.dynsym) }
.dynstr ${RELOCATING-0} : { *(.dynstr) } .dynstr ${RELOCATING-0} : { *(.dynstr) }
.rela.text ${RELOCATING-0} : { *(.rela.text) } .rela.text ${RELOCATING-0} :
.rela.data ${RELOCATING-0} : { *(.rela.data) } { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rela.rodata ${RELOCATING-0} : { *(.rela.rodata) } .rela.data ${RELOCATING-0} :
{ *(.rela.data) *(.rela.gnu.linkonce.d*) }
.rela.rodata ${RELOCATING-0} :
{ *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
.rela.got ${RELOCATING-0} : { *(.rela.got) } .rela.got ${RELOCATING-0} : { *(.rela.got) }
.rela.got1 ${RELOCATING-0} : { *(.rela.got1) } .rela.got1 ${RELOCATING-0} : { *(.rela.got1) }
.rela.got2 ${RELOCATING-0} : { *(.rela.got2) } .rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
@ -76,10 +79,11 @@ SECTIONS
*(.text) *(.text)
/* .gnu.warning sections are handled specially by elf32.em. */ /* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning) *(.gnu.warning)
*(.gnu.linkonce.t*)
} =${NOP-0} } =${NOP-0}
.init ${RELOCATING-0} : { *(.init) } =${NOP-0} .init ${RELOCATING-0} : { *(.init) } =${NOP-0}
.fini ${RELOCATING-0} : { *(.fini) } =${NOP-0} .fini ${RELOCATING-0} : { *(.fini) } =${NOP-0}
.rodata ${RELOCATING-0} : { *(.rodata) } .rodata ${RELOCATING-0} : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 ${RELOCATING-0} : { *(.rodata1) } .rodata1 ${RELOCATING-0} : { *(.rodata1) }
${RELOCATING+_etext = .;} ${RELOCATING+_etext = .;}
${RELOCATING+PROVIDE (etext = .);} ${RELOCATING+PROVIDE (etext = .);}
@ -107,6 +111,7 @@ SECTIONS
{ {
${RELOCATING+${DATA_START_SYMBOLS}} ${RELOCATING+${DATA_START_SYMBOLS}}
*(.data) *(.data)
*(.gnu.linkonce.d*)
${CONSTRUCTING+CONSTRUCTORS} ${CONSTRUCTING+CONSTRUCTORS}
} }
.data1 ${RELOCATING-0} : { *(.data1) } .data1 ${RELOCATING-0} : { *(.data1) }