aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf.sc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-06-15 16:39:17 +0000
committerJakub Jelinek <jakub@redhat.com>2004-06-15 16:39:17 +0000
commitdfff4fbed780143079e95d9a8fdfa28693eb81da (patch)
tree4cca09662ea64017d8f967d9c204d1c3e913d617 /ld/scripttempl/elf.sc
parent31eef181bbf2d7f0025a720e7b4abbf2ed1ffcbd (diff)
downloadgdb-dfff4fbed780143079e95d9a8fdfa28693eb81da.zip
gdb-dfff4fbed780143079e95d9a8fdfa28693eb81da.tar.gz
gdb-dfff4fbed780143079e95d9a8fdfa28693eb81da.tar.bz2
* scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
.gcc_except_table output sections lost accidentally with -z relro patch.
Diffstat (limited to 'ld/scripttempl/elf.sc')
-rw-r--r--ld/scripttempl/elf.sc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 4d0279c..93d849e 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -312,7 +312,7 @@ cat <<EOF
${OTHER_READONLY_SECTIONS}
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.eh_frame)) }
- .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { *(.gcc_except_table) }
+ .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
@@ -322,7 +322,7 @@ cat <<EOF
/* Exception handling */
.eh_frame ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
- .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { *(.gcc_except_table) }
+ .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.gcc_except_table)) *(.gcc_except_table.*) }
/* Thread Local Storage sections */
.tdata ${RELOCATING-0} : { *(.tdata${RELOCATING+ .tdata.* .gnu.linkonce.td.*}) }