aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/eh-frame2-n32.d
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-03-17 18:52:04 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2008-03-17 18:52:04 +0000
commit198e22a0fc657229f0cb3dd3ac216db7c35f7ff6 (patch)
tree8d386df40ff7498108da92403acf157b57d21aff /ld/testsuite/ld-mips-elf/eh-frame2-n32.d
parent08e8dfaf50092d96a5f1a5cc438230c30e3a13e9 (diff)
downloadgdb-198e22a0fc657229f0cb3dd3ac216db7c35f7ff6.zip
gdb-198e22a0fc657229f0cb3dd3ac216db7c35f7ff6.tar.gz
gdb-198e22a0fc657229f0cb3dd3ac216db7c35f7ff6.tar.bz2
ld/testsuite/
* ld-mips-elf/eh-frame1-n32.d: Expect a warning about .eh_frame_hdr. Remove duplicate CIEs. Adjust relocation addresses and .eh_frame offsets accordingly. Do not allow there to be any trailing R_MIPS_NONE relocations. * ld-mips-elf/eh-frame1-n64.d: Likewise. * ld-mips-elf/eh-frame2-n32.d: Likewise. * ld-mips-elf/eh-frame2-n64.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-mips-elf/eh-frame2-n32.d')
-rw-r--r--ld/testsuite/ld-mips-elf/eh-frame2-n32.d91
1 files changed, 17 insertions, 74 deletions
diff --git a/ld/testsuite/ld-mips-elf/eh-frame2-n32.d b/ld/testsuite/ld-mips-elf/eh-frame2-n32.d
index 160b7a8..ce2aa1d 100644
--- a/ld/testsuite/ld-mips-elf/eh-frame2-n32.d
+++ b/ld/testsuite/ld-mips-elf/eh-frame2-n32.d
@@ -4,6 +4,7 @@
#as: -EB -n32 --defsym alignment=2 --defsym fill=0
#readelf: --relocs -wf
#ld: -shared -melf32btsmipn32 -Teh-frame1.ld
+#warning: fde encoding in.*prevents \.eh_frame_hdr table being created.
Relocation section '\.rel\.dyn' .*:
*Offset .*
@@ -11,16 +12,11 @@ Relocation section '\.rel\.dyn' .*:
# Initial PCs for the FDEs attached to CIE 0xb8
000300d8 [0-9a-f]+ R_MIPS_REL32 *
000300ec [0-9a-f]+ R_MIPS_REL32 *
-# Likewise CIE 0x218
-00030238 [0-9a-f]+ R_MIPS_REL32 *
-0003024c [0-9a-f]+ R_MIPS_REL32 *
+000301f4 [0-9a-f]+ R_MIPS_REL32 *
+00030208 [0-9a-f]+ R_MIPS_REL32 *
0003008b [0-9a-f]+ R_MIPS_REL32 00000000 foo
000300cc [0-9a-f]+ R_MIPS_REL32 00000000 foo
0003010a [0-9a-f]+ R_MIPS_REL32 00000000 foo
-000301eb [0-9a-f]+ R_MIPS_REL32 00000000 foo
-0003022c [0-9a-f]+ R_MIPS_REL32 00000000 foo
-0003026a [0-9a-f]+ R_MIPS_REL32 00000000 foo
-#...
The section \.eh_frame contains:
00000000 00000010 00000000 CIE
@@ -129,126 +125,73 @@ The section \.eh_frame contains:
DW_CFA_nop
DW_CFA_nop
-0000014c 00000010 00000000 CIE
- Version: 1
- Augmentation: "zR"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 10
-
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
-
-00000160 00000010 00000018 FDE cie=0000014c pc=000201d0..000201e0
+0000014c 00000010 00000150 FDE cie=00000000 pc=000201d0..000201e0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
# basic1 removed, followed by repeat of above
-00000174 00000010 0000002c FDE cie=0000014c pc=000201e0..000201f0
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
-
-00000188 00000010 00000040 FDE cie=0000014c pc=000201f0..00020210
+00000160 00000010 00000164 FDE cie=00000000 pc=000201e0..000201f0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-0000019c 00000010 00000054 FDE cie=0000014c pc=00020210..00020240
+00000174 00000010 00000178 FDE cie=00000000 pc=000201f0..00020210
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-000001b0 00000010 00000068 FDE cie=0000014c pc=00020240..00020280
+00000188 00000010 0000018c FDE cie=00000000 pc=00020210..00020240
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-000001c4 00000010 0000007c FDE cie=0000014c pc=00020280..000202d0
+0000019c 00000010 000001a0 FDE cie=00000000 pc=00020240..00020280
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-000001d8 00000014 00000000 CIE
- Version: 1
- Augmentation: "zRP"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 10 00 00 00 00 00
-
- DW_CFA_nop
-
-000001f0 00000010 0000001c FDE cie=000001d8 pc=000202d0..000202e0
+000001b0 00000010 000001b4 FDE cie=00000000 pc=00020280..000202d0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000204 00000010 00000030 FDE cie=000001d8 pc=000202e0..00020300
+000001c4 00000010 00000150 FDE cie=00000078 pc=000202d0..000202e0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000218 00000014 00000000 CIE
- Version: 1
- Augmentation: "zP"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 50 00 00 00 00 00 00 00
-
-
-00000230 00000010 0000001c FDE cie=00000218 pc=00020300..00020310
+000001d8 00000010 00000164 FDE cie=00000078 pc=000202e0..00020300
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000244 00000010 00000030 FDE cie=00000218 pc=00020310..00020330
- DW_CFA_nop
+000001ec 00000010 00000138 FDE cie=000000b8 pc=00020300..00020310
DW_CFA_nop
DW_CFA_nop
-
-00000258 00000014 00000000 CIE
- Version: 1
- Augmentation: "zPR"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 00 00 00 00 00 10
-
DW_CFA_nop
-00000270 00000010 0000001c FDE cie=00000258 pc=00020330..00020340
+00000200 00000010 0000014c FDE cie=000000b8 pc=00020310..00020330
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000284 00000010 00000030 FDE cie=00000258 pc=00020340..00020370
+00000214 00000010 00000120 FDE cie=000000f8 pc=00020330..00020340
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000298 00000010 00000044 FDE cie=00000258 pc=00020370..000203b0
+00000228 00000010 00000134 FDE cie=000000f8 pc=00020340..00020370
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-000002ac 00000010 00000000 CIE
- Version: 1
- Augmentation: "zR"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 10
-
+0000023c 00000010 00000148 FDE cie=000000f8 pc=00020370..000203b0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-000002c0 00000010 00000018 FDE cie=000002ac pc=000203b0..000203c0
+00000250 00000010 00000254 FDE cie=00000000 pc=000203b0..000203c0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop