diff options
author | Alan Modra <amodra@gmail.com> | 2007-04-24 04:29:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-04-24 04:29:03 +0000 |
commit | 98f17e6e1ca620ec1f263a2a716b3ca7b7c3ffb7 (patch) | |
tree | 4b8e9cf807cd88291856fa2ddf0317a4f1be3ffc /ld/testsuite/ld-linkonce/x.s | |
parent | 64be15537dc7a4e427588885f7427eee894e529d (diff) | |
download | gdb-98f17e6e1ca620ec1f263a2a716b3ca7b7c3ffb7.zip gdb-98f17e6e1ca620ec1f263a2a716b3ca7b7c3ffb7.tar.gz gdb-98f17e6e1ca620ec1f263a2a716b3ca7b7c3ffb7.tar.bz2 |
* ld-linkonce/x.s: Use .gcc_except_table instead of .eh_frame
to test that entry for deleted function is zeroed. Add a
somewhat closer to normal .eh_frame to test that fde for
deleted function is removed.
* ld-linkonce/y.s: Likewise.
* ld-linkonce/zeroeh.ld: Place .gcc_except_table too.
* ld-linkonce/zeroehl32.d: Update.
Diffstat (limited to 'ld/testsuite/ld-linkonce/x.s')
-rw-r--r-- | ld/testsuite/ld-linkonce/x.s | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/ld/testsuite/ld-linkonce/x.s b/ld/testsuite/ld-linkonce/x.s index 6807cfc..d07f73e 100644 --- a/ld/testsuite/ld-linkonce/x.s +++ b/ld/testsuite/ld-linkonce/x.s @@ -1,8 +1,7 @@ ;# 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. .text .global _start @@ -20,7 +19,29 @@ fn: .Lb: .size fn,.Lb-.La - .section .eh_frame,"aw",@progbits + .section .gcc_except_table,"aw",@progbits .long 2 .long .La .long .Lb-.La + + .section .eh_frame,"aw",@progbits +.Lframe1: + .long .LECIE1-.LSCIE1 +.LSCIE1: + .long 0x0 + .byte 0x1 + .byte 0 + .uleb128 0x1 + .sleb128 -4 + .byte 0 + .p2align 2 +.LECIE1: + +.LSFDE1: + .long .LEFDE1-.LASFDE1 +.LASFDE1: + .long .LASFDE1-.Lframe1 + .long .La + .long .Lb-.La + .p2align 2 +.LEFDE1: |