aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2009-07-31 04:55:48 +0000
committerHans-Peter Nilsson <hp@axis.com>2009-07-31 04:55:48 +0000
commitdd52c6dee232ec529d5a52ae0d40842f0d0cfc66 (patch)
tree2a7ec7ea4ad52ac71a775e16fcd901dc4c486491
parent080a1b9fb589cccd3ec63e91e871ef832c67abfd (diff)
downloadgdb-dd52c6dee232ec529d5a52ae0d40842f0d0cfc66.zip
gdb-dd52c6dee232ec529d5a52ae0d40842f0d0cfc66.tar.gz
gdb-dd52c6dee232ec529d5a52ae0d40842f0d0cfc66.tar.bz2
* ld-mmix/x.s, ld-mmix/y.s, ld-mmix/zeroeh.ld,
ld-mmix/zeroehelf.d, ld-mmix/zeroehmmo.d: Use .gcc_except_table, not .eh_frame.
-rw-r--r--ld/testsuite/ChangeLog6
-rw-r--r--ld/testsuite/ld-mmix/x.s9
-rw-r--r--ld/testsuite/ld-mmix/y.s6
-rw-r--r--ld/testsuite/ld-mmix/zeroeh.ld2
-rw-r--r--ld/testsuite/ld-mmix/zeroehelf.d2
-rw-r--r--ld/testsuite/ld-mmix/zeroehmmo.d2
6 files changed, 18 insertions, 9 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index e22765d..525bc8e 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-31 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * ld-mmix/x.s, ld-mmix/y.s, ld-mmix/zeroeh.ld,
+ ld-mmix/zeroehelf.d, ld-mmix/zeroehmmo.d: Use .gcc_except_table,
+ not .eh_frame.
+
2009-07-30 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/shared.exp: Comment out dl3b.
diff --git a/ld/testsuite/ld-mmix/x.s b/ld/testsuite/ld-mmix/x.s
index faf4073..e7222b1 100644
--- a/ld/testsuite/ld-mmix/x.s
+++ b/ld/testsuite/ld-mmix/x.s
@@ -1,8 +1,11 @@
;# Main file, x.s, with the program (_start) referring to two
;# linkonce functions fn and fn2. The functions fn and fn2 are
;# supposed to be equivalent of C++ template instantiations; the
-;# main file instantiates fn. There's the equivalent of an FDE
-;# entry in .eh_frame, referring to fn via a local label.
+;# main file instantiates fn. An exception-table-lookalike entry
+;# refers to fn via a local label. We use .gcc_except_table as we
+;# can't be bothered to produce syntactically valid .eh_frame contents
+;# and there's no option to turn off warning messages for invalid
+;# contents.
.text
.global _start
@@ -20,7 +23,7 @@ L:a:
L:b:
.size fn,L:b-L:a
- .section .eh_frame,"aw",@progbits
+ .section .gcc_except_table,"aw",@progbits
.long 2
.long L:a
.long L:b-L:a
diff --git a/ld/testsuite/ld-mmix/y.s b/ld/testsuite/ld-mmix/y.s
index fcfcd35..1773d67 100644
--- a/ld/testsuite/ld-mmix/y.s
+++ b/ld/testsuite/ld-mmix/y.s
@@ -2,8 +2,8 @@
;# that this version of fn has different code, as if compiled
;# with different optimization flags than the one in x.s (not
;# important for this test, though). The reference from
-;# .eh_frame to the linkonce-excluded fn2 must be zero, or g++
-;# EH will not work.
+;# .gcc_except_table to the linkonce-excluded fn2 must be zero,
+;# or g++ EH will not work.
.section .gnu.linkonce.t.fn2,"ax",@progbits
.weak fn2
@@ -23,7 +23,7 @@ L:e:
L:f:
.size fn,L:f-L:e
- .section .eh_frame,"aw",@progbits
+ .section .gcc_except_table,"aw",@progbits
.long 7
.long L:c
.long L:d-L:c
diff --git a/ld/testsuite/ld-mmix/zeroeh.ld b/ld/testsuite/ld-mmix/zeroeh.ld
index 6550c17..efdab4d 100644
--- a/ld/testsuite/ld-mmix/zeroeh.ld
+++ b/ld/testsuite/ld-mmix/zeroeh.ld
@@ -1,4 +1,4 @@
SECTIONS {
.text 0xa00 : { *(.text); *(.gnu.linkonce.t.*) }
- .eh_frame 0x2000 : { *(.eh_frame) }
+ .gcc_except_table 0x2000 : { *(.gcc_except_table) }
}
diff --git a/ld/testsuite/ld-mmix/zeroehelf.d b/ld/testsuite/ld-mmix/zeroehelf.d
index ba17314..7299234 100644
--- a/ld/testsuite/ld-mmix/zeroehelf.d
+++ b/ld/testsuite/ld-mmix/zeroehelf.d
@@ -10,7 +10,7 @@
Contents of section \.text:
0a00 00000a08 00000a10 00000001 00000002 .*
0a10 00000003 .*
-Contents of section \.eh_frame:
+Contents of section \.gcc_except_table:
2000 00000002 00000a08 00000008 00000007 .*
2010 00000a10 00000004 00006066 00000000 .*
2020 00000004 .*
diff --git a/ld/testsuite/ld-mmix/zeroehmmo.d b/ld/testsuite/ld-mmix/zeroehmmo.d
index 2c47ff1..1b76532 100644
--- a/ld/testsuite/ld-mmix/zeroehmmo.d
+++ b/ld/testsuite/ld-mmix/zeroehmmo.d
@@ -10,7 +10,7 @@
Contents of section \.text:
0a00 00000a08 00000a10 00000001 00000002 .*
0a10 00000003 .*
-Contents of section \.eh_frame:
+Contents of section \.gcc_except_table:
2000 00000002 00000a08 00000008 00000007 .*
2010 00000a10 00000004 00006066 00000000 .*
2020 00000004 .*