mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
* 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.
This commit is contained in:
@ -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>
|
2009-07-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* ld-elf/shared.exp: Comment out dl3b.
|
* ld-elf/shared.exp: Comment out dl3b.
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
;# Main file, x.s, with the program (_start) referring to two
|
;# Main file, x.s, with the program (_start) referring to two
|
||||||
;# linkonce functions fn and fn2. The functions fn and fn2 are
|
;# linkonce functions fn and fn2. The functions fn and fn2 are
|
||||||
;# supposed to be equivalent of C++ template instantiations; the
|
;# supposed to be equivalent of C++ template instantiations; the
|
||||||
;# main file instantiates fn. There's the equivalent of an FDE
|
;# main file instantiates fn. An exception-table-lookalike entry
|
||||||
;# entry in .eh_frame, referring to fn via a local label.
|
;# 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
|
.text
|
||||||
.global _start
|
.global _start
|
||||||
@ -20,7 +23,7 @@ L:a:
|
|||||||
L:b:
|
L:b:
|
||||||
.size fn,L:b-L:a
|
.size fn,L:b-L:a
|
||||||
|
|
||||||
.section .eh_frame,"aw",@progbits
|
.section .gcc_except_table,"aw",@progbits
|
||||||
.long 2
|
.long 2
|
||||||
.long L:a
|
.long L:a
|
||||||
.long L:b-L:a
|
.long L:b-L:a
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
;# that this version of fn has different code, as if compiled
|
;# that this version of fn has different code, as if compiled
|
||||||
;# with different optimization flags than the one in x.s (not
|
;# with different optimization flags than the one in x.s (not
|
||||||
;# important for this test, though). The reference from
|
;# important for this test, though). The reference from
|
||||||
;# .eh_frame to the linkonce-excluded fn2 must be zero, or g++
|
;# .gcc_except_table to the linkonce-excluded fn2 must be zero,
|
||||||
;# EH will not work.
|
;# or g++ EH will not work.
|
||||||
|
|
||||||
.section .gnu.linkonce.t.fn2,"ax",@progbits
|
.section .gnu.linkonce.t.fn2,"ax",@progbits
|
||||||
.weak fn2
|
.weak fn2
|
||||||
@ -23,7 +23,7 @@ L:e:
|
|||||||
L:f:
|
L:f:
|
||||||
.size fn,L:f-L:e
|
.size fn,L:f-L:e
|
||||||
|
|
||||||
.section .eh_frame,"aw",@progbits
|
.section .gcc_except_table,"aw",@progbits
|
||||||
.long 7
|
.long 7
|
||||||
.long L:c
|
.long L:c
|
||||||
.long L:d-L:c
|
.long L:d-L:c
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
SECTIONS {
|
SECTIONS {
|
||||||
.text 0xa00 : { *(.text); *(.gnu.linkonce.t.*) }
|
.text 0xa00 : { *(.text); *(.gnu.linkonce.t.*) }
|
||||||
.eh_frame 0x2000 : { *(.eh_frame) }
|
.gcc_except_table 0x2000 : { *(.gcc_except_table) }
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
Contents of section \.text:
|
Contents of section \.text:
|
||||||
0a00 00000a08 00000a10 00000001 00000002 .*
|
0a00 00000a08 00000a10 00000001 00000002 .*
|
||||||
0a10 00000003 .*
|
0a10 00000003 .*
|
||||||
Contents of section \.eh_frame:
|
Contents of section \.gcc_except_table:
|
||||||
2000 00000002 00000a08 00000008 00000007 .*
|
2000 00000002 00000a08 00000008 00000007 .*
|
||||||
2010 00000a10 00000004 00006066 00000000 .*
|
2010 00000a10 00000004 00006066 00000000 .*
|
||||||
2020 00000004 .*
|
2020 00000004 .*
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
Contents of section \.text:
|
Contents of section \.text:
|
||||||
0a00 00000a08 00000a10 00000001 00000002 .*
|
0a00 00000a08 00000a10 00000001 00000002 .*
|
||||||
0a10 00000003 .*
|
0a10 00000003 .*
|
||||||
Contents of section \.eh_frame:
|
Contents of section \.gcc_except_table:
|
||||||
2000 00000002 00000a08 00000008 00000007 .*
|
2000 00000002 00000a08 00000008 00000007 .*
|
||||||
2010 00000a10 00000004 00006066 00000000 .*
|
2010 00000a10 00000004 00006066 00000000 .*
|
||||||
2020 00000004 .*
|
2020 00000004 .*
|
||||||
|
Reference in New Issue
Block a user