* gas/elf/ehopt0.s: New.
authorRichard Henderson <rth@redhat.com>
Mon, 14 May 2001 22:37:31 +0000 (22:37 +0000)
committerRichard Henderson <rth@redhat.com>
Mon, 14 May 2001 22:37:31 +0000 (22:37 +0000)
        * gas/elf/ehopt0.d: New.
        * gas/elf/elf.exp: Run it.

gas/testsuite/ChangeLog
gas/testsuite/gas/elf/ehopt0.d [new file with mode: 0644]
gas/testsuite/gas/elf/ehopt0.s [new file with mode: 0644]
gas/testsuite/gas/elf/elf.exp

index 0d688e9..7ab6296 100644 (file)
@@ -1,3 +1,9 @@
+2001-05-14  Richard Henderson  <rth@redhat.com>
+
+       * gas/elf/ehopt0.s: New.
+       * gas/elf/ehopt0.d: New.
+       * gas/elf/elf.exp: Run it.
+
 2001-05-12  Peter Targett  <peter.targett@arccores.com>
 
        * gas/arc/st.s: Add test case @h30 fixup.
diff --git a/gas/testsuite/gas/elf/ehopt0.d b/gas/testsuite/gas/elf/ehopt0.d
new file mode 100644 (file)
index 0000000..a339c19
--- /dev/null
@@ -0,0 +1,9 @@
+#objdump: -s -j .eh_frame
+#name: elf ehopt0 
+
+.*: +file format .*
+
+Contents of section .eh_frame:
+ 0+000 10000000 00000000 017a0001 781a0004 .*
+ 0+010 01000000 12000000 18000000 00000000 .*
+ 0+020 08000000 04080000 0044 .*
diff --git a/gas/testsuite/gas/elf/ehopt0.s b/gas/testsuite/gas/elf/ehopt0.s
new file mode 100644 (file)
index 0000000..bc3fc61
--- /dev/null
@@ -0,0 +1,32 @@
+       .text
+$LFB1:
+       .4byte  0
+$L1:
+       .4byte  0
+$LFE1:
+       .section        .eh_frame,"aw",@progbits
+__FRAME_BEGIN__:
+       .4byte  $LECIE1-$LSCIE1
+$LSCIE1:
+       .4byte  0x0
+       .byte   0x1
+       .ascii "z\0"
+       .byte   0x1
+       .byte   0x78
+       .byte   0x1a
+       .byte   0x0
+       .byte   0x4
+       .4byte  1
+       .p2align 1
+$LECIE1:
+$LSFDE1:
+       .4byte  $LEFDE1-$LASFDE1
+$LASFDE1:
+       .4byte  $LASFDE1-__FRAME_BEGIN__
+       .4byte  $LFB1
+       .4byte  $LFE1-$LFB1
+       .byte   0x4
+       .4byte  $LFE1-$LFB1
+       .byte   0x4
+       .4byte  $L1-$LFB1
+$LEFDE1:
index 13b7c0b..a25a396 100644 (file)
@@ -11,6 +11,7 @@ if { ([istarget "*-*-elf*"]
      && ![istarget *-*-linux*coff*]
      && ![istarget *-*-linux*oldld*]
 } then {
+    run_dump_test "ehopt0"
     run_dump_test "section0" 
     run_dump_test "section1" 
 }