aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-01-27 17:39:24 +0000
committerIan Lance Taylor <ian@airs.com>1997-01-27 17:39:24 +0000
commitf5f212fb563a3e8bfe8f1d86f12dd42e1f5163f7 (patch)
tree851df63100ff8b6351927242a430f551a3e86d61 /ld/scripttempl
parentddc846e915ba4c9f8ea238a00b7c606966e15a0a (diff)
downloadgdb-f5f212fb563a3e8bfe8f1d86f12dd42e1f5163f7.zip
gdb-f5f212fb563a3e8bfe8f1d86f12dd42e1f5163f7.tar.gz
gdb-f5f212fb563a3e8bfe8f1d86f12dd42e1f5163f7.tar.bz2
* scripttempl/elf.sc: Put linkonce reloc section in other
appropriate reloc sections. * scripttempl/elfmips.sc: Add linkonce support. * scripttempl/elfppc.sc: Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elfmips.sc22
-rw-r--r--ld/scripttempl/elfppc.sc13
2 files changed, 24 insertions, 11 deletions
diff --git a/ld/scripttempl/elfmips.sc b/ld/scripttempl/elfmips.sc
index 19f3e72..535310f 100644
--- a/ld/scripttempl/elfmips.sc
+++ b/ld/scripttempl/elfmips.sc
@@ -68,12 +68,18 @@ SECTIONS
.dynstr ${RELOCATING-0} : { *(.dynstr) }
.dynsym ${RELOCATING-0} : { *(.dynsym) }
.hash ${RELOCATING-0} : { *(.hash) }
- .rel.text ${RELOCATING-0} : { *(.rel.text) }
- .rela.text ${RELOCATING-0} : { *(.rela.text) }
- .rel.data ${RELOCATING-0} : { *(.rel.data) }
- .rela.data ${RELOCATING-0} : { *(.rela.data) }
- .rel.rodata ${RELOCATING-0} : { *(.rel.rodata) }
- .rela.rodata ${RELOCATING-0} : { *(.rela.rodata) }
+ .rel.text ${RELOCATING-0} :
+ { *(.rel.text) *(.rel.gnu.linkonce.t*) }
+ .rela.text ${RELOCATING-0} :
+ { *(.rela.text) *(.rela.gnu.linkonce.t*) }
+ .rel.data ${RELOCATING-0} :
+ { *(.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) }
.rela.got ${RELOCATING-0} : { *(.rela.got) }
.rel.ctors ${RELOCATING-0} : { *(.rel.ctors) }
@@ -88,7 +94,7 @@ SECTIONS
.rela.bss ${RELOCATING-0} : { *(.rela.bss) }
.rel.plt ${RELOCATING-0} : { *(.rel.plt) }
.rela.plt ${RELOCATING-0} : { *(.rela.plt) }
- .rodata ${RELOCATING-0} : { *(.rodata) }
+ .rodata ${RELOCATING-0} : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 ${RELOCATING-0} : { *(.rodata1) }
.init ${RELOCATING-0} : { *(.init) } =${NOP-0}
.text ${RELOCATING-0} :
@@ -98,6 +104,7 @@ SECTIONS
*(.stub)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
+ *(.gnu.linkonce.t*)
} =${NOP-0}
${RELOCATING+_etext = .;}
${RELOCATING+PROVIDE (etext = .);}
@@ -125,6 +132,7 @@ SECTIONS
{
${RELOCATING+${DATA_START_SYMBOLS}}
*(.data)
+ *(.gnu.linkonce.d*)
${CONSTRUCTING+CONSTRUCTORS}
}
.data1 ${RELOCATING-0} : { *(.data1) }
diff --git a/ld/scripttempl/elfppc.sc b/ld/scripttempl/elfppc.sc
index 69a2f53..b6c542a 100644
--- a/ld/scripttempl/elfppc.sc
+++ b/ld/scripttempl/elfppc.sc
@@ -53,9 +53,12 @@ SECTIONS
.hash ${RELOCATING-0} : { *(.hash) }
.dynsym ${RELOCATING-0} : { *(.dynsym) }
.dynstr ${RELOCATING-0} : { *(.dynstr) }
- .rela.text ${RELOCATING-0} : { *(.rela.text) }
- .rela.data ${RELOCATING-0} : { *(.rela.data) }
- .rela.rodata ${RELOCATING-0} : { *(.rela.rodata) }
+ .rela.text ${RELOCATING-0} :
+ { *(.rela.text) *(.rela.gnu.linkonce.t*) }
+ .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.got1 ${RELOCATING-0} : { *(.rela.got1) }
.rela.got2 ${RELOCATING-0} : { *(.rela.got2) }
@@ -76,10 +79,11 @@ SECTIONS
*(.text)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
+ *(.gnu.linkonce.t*)
} =${NOP-0}
.init ${RELOCATING-0} : { *(.init) } =${NOP-0}
.fini ${RELOCATING-0} : { *(.fini) } =${NOP-0}
- .rodata ${RELOCATING-0} : { *(.rodata) }
+ .rodata ${RELOCATING-0} : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 ${RELOCATING-0} : { *(.rodata1) }
${RELOCATING+_etext = .;}
${RELOCATING+PROVIDE (etext = .);}
@@ -107,6 +111,7 @@ SECTIONS
{
${RELOCATING+${DATA_START_SYMBOLS}}
*(.data)
+ *(.gnu.linkonce.d*)
${CONSTRUCTING+CONSTRUCTORS}
}
.data1 ${RELOCATING-0} : { *(.data1) }