aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-06-22 19:08:18 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-06-22 19:08:18 +0000
commitd513119138d7c44094ef3b07f70b7a0ae2cd66c1 (patch)
tree5d8fc3a2bf09bed9d3060dd39aac655784e8d2e8 /ld/scripttempl
parent3f4ca874466a5c75a4b7e0822c8068276a147568 (diff)
downloadgdb-d513119138d7c44094ef3b07f70b7a0ae2cd66c1.zip
gdb-d513119138d7c44094ef3b07f70b7a0ae2cd66c1.tar.gz
gdb-d513119138d7c44094ef3b07f70b7a0ae2cd66c1.tar.bz2
Add .fixup section
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elfppc.sc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/scripttempl/elfppc.sc b/ld/scripttempl/elfppc.sc
index 8a6b78d..5d7fa21 100644
--- a/ld/scripttempl/elfppc.sc
+++ b/ld/scripttempl/elfppc.sc
@@ -105,7 +105,7 @@ SECTIONS
${RELOCATING+_GOT1_END_ = .;}
/* Put .ctors and .dtors next to the .got2 section, so that the pointers
- get relocated with -mrelocatable. */
+ get relocated with -mrelocatable. Also put in the .fixup pointers. */
${RELOCATING+_GOT2_START_ = .;}
.got2 ${RELOCATING-0} : { *(.got2) }
@@ -118,6 +118,9 @@ SECTIONS
.dtors ${RELOCATING-0} : { *(.dtors) }
${RELOCATING+__DTOR_END__ = .;}
+ ${RELOCATING+_FIXUP_START_ = .;}
+ .fixup ${RELOCATING-0} : { *(.fixup) }
+ ${RELOCATING+_FIXUP_END_ = .;}
${RELOCATING+_GOT2_END_ = .;}
${RELOCATING+_GOT_START_ = .;}