aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-05-13 09:45:45 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2012-05-13 09:45:45 +0000
commit41ec656ec656d69a6a2cd66ada6260e09e45f02e (patch)
tree6a1b597f7fc90e3f81b4851eb652b7cef8f2526c /ld/testsuite
parent25a9d0857904bcda391e365b1c60975b8ac19811 (diff)
downloadgdb-41ec656ec656d69a6a2cd66ada6260e09e45f02e.zip
gdb-41ec656ec656d69a6a2cd66ada6260e09e45f02e.tar.gz
gdb-41ec656ec656d69a6a2cd66ada6260e09e45f02e.tar.bz2
ld/testsuite/
* ld-mips-elf/eh-frame1.ld (.gcc_compiled_long32): Add KEEP. * ld-mips-elf/eh-frame3.d: Move definition of foo to the link line and change to a 32-bit value. Expect CIEs to be marged. * ld-mips-elf/eh-frame4.d: Move definition of foo to the link line.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-mips-elf/eh-frame1.ld2
-rw-r--r--ld/testsuite/ld-mips-elf/eh-frame3.d99
-rw-r--r--ld/testsuite/ld-mips-elf/eh-frame4.d85
4 files changed, 43 insertions, 150 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 907e18f..d12501e 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-13 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * ld-mips-elf/eh-frame1.ld (.gcc_compiled_long32): Add KEEP.
+ * ld-mips-elf/eh-frame3.d: Move definition of foo to the link line
+ and change to a 32-bit value. Expect CIEs to be marged.
+ * ld-mips-elf/eh-frame4.d: Move definition of foo to the link line.
+
2012-05-12 H.J. Lu <hongjiu.lu@intel.com>
* ld-alpha/tlspic.rd: Updated.
diff --git a/ld/testsuite/ld-mips-elf/eh-frame1.ld b/ld/testsuite/ld-mips-elf/eh-frame1.ld
index 93c4972..30fb948 100644
--- a/ld/testsuite/ld-mips-elf/eh-frame1.ld
+++ b/ld/testsuite/ld-mips-elf/eh-frame1.ld
@@ -13,7 +13,7 @@ SECTIONS
. = 0x30000;
.eh_frame : { *(.eh_frame) }
.got : { *(.got) }
- .gcc_compiled_long32 : { *(.gcc_compiled_long32) }
+ .gcc_compiled_long32 : { KEEP (*(.gcc_compiled_long32)) }
/DISCARD/ : { *(*) }
}
diff --git a/ld/testsuite/ld-mips-elf/eh-frame3.d b/ld/testsuite/ld-mips-elf/eh-frame3.d
index 0328eb8..8225a3c 100644
--- a/ld/testsuite/ld-mips-elf/eh-frame3.d
+++ b/ld/testsuite/ld-mips-elf/eh-frame3.d
@@ -1,9 +1,9 @@
#name: MIPS eh-frame 3
#source: eh-frame1.s
#source: eh-frame1.s
-#as: -EB -mips3 -mabi=eabi --defsym alignment=3 --defsym fill=0 --defsym foo=0x1020304050607080
+#as: -EB -mips3 -mabi=eabi --defsym alignment=3 --defsym fill=0
#readelf: -wf
-#ld: -EB -Teh-frame1.ld
+#ld: -EB -Teh-frame1.ld --defsym foo=0x50607080
#
# This test is for the official LP64 version of EABI64, which uses a
# combination of 32-bit objects and 64-bit FDE addresses.
@@ -41,7 +41,7 @@ Contents of the \.eh_frame section:
Code alignment factor: 1
Data alignment factor: 4
Return address column: 31
- Augmentation data: 00 10 20 30 40 50 60 70 80
+ Augmentation data: 00 00 00 00 00 50 60 70 80
DW_CFA_nop
DW_CFA_nop
@@ -75,7 +75,7 @@ Contents of the \.eh_frame section:
Code alignment factor: 1
Data alignment factor: 4
Return address column: 31
- Augmentation data: 50 00 00 00 00 00 00 00 10 20 30 40 50 60 70 80
+ Augmentation data: 50 00 00 00 00 00 00 00 00 00 00 00 50 60 70 80
00000108 0000001c 00000024 FDE cie=000000e8 pc=00020120..00020130
@@ -102,7 +102,7 @@ Contents of the \.eh_frame section:
Code alignment factor: 1
Data alignment factor: 4
Return address column: 31
- Augmentation data: 00 10 20 30 40 50 60 70 80 00
+ Augmentation data: 00 00 00 00 00 50 60 70 80 00
DW_CFA_nop
DW_CFA_nop
@@ -139,38 +139,20 @@ Contents of the \.eh_frame section:
DW_CFA_nop
DW_CFA_nop
-000001c8 0000000c 00000000 CIE
- Version: 1
- Augmentation: ""
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
-
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
-
-000001d8 00000014 00000014 FDE cie=000001c8 pc=000201d0..000201e0
+000001c8 00000014 000001cc FDE cie=00000000 pc=000201d0..000201e0
# basic1 removed, followed by repeat of above
-000001f0 00000014 0000002c FDE cie=000001c8 pc=000201e0..000201f0
+000001e0 00000014 000001e4 FDE cie=00000000 pc=000201e0..000201f0
-00000208 00000014 00000044 FDE cie=000001c8 pc=000201f0..00020210
+000001f8 00000014 000001fc FDE cie=00000000 pc=000201f0..00020210
-00000220 00000014 0000005c FDE cie=000001c8 pc=00020210..00020240
+00000210 00000014 00000214 FDE cie=00000000 pc=00020210..00020240
-00000238 00000014 00000074 FDE cie=000001c8 pc=00020240..00020280
+00000228 00000014 0000022c FDE cie=00000000 pc=00020240..00020280
-00000250 00000014 0000008c FDE cie=000001c8 pc=00020280..000202d0
-
-00000268 0000001c 00000000 CIE
- Version: 1
- Augmentation: "zP"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 00 10 20 30 40 50 60 70 80
+00000240 00000014 00000244 FDE cie=00000000 pc=00020280..000202d0
+00000258 0000001c 000001d4 FDE cie=00000088 pc=000202d0..000202e0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -179,7 +161,7 @@ Contents of the \.eh_frame section:
DW_CFA_nop
DW_CFA_nop
-00000288 0000001c 00000024 FDE cie=00000268 pc=000202d0..000202e0
+00000278 0000001c 000001f4 FDE cie=00000088 pc=000202e0..00020300
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -188,7 +170,7 @@ Contents of the \.eh_frame section:
DW_CFA_nop
DW_CFA_nop
-000002a8 0000001c 00000044 FDE cie=00000268 pc=000202e0..00020300
+00000298 0000001c 000001b4 FDE cie=000000e8 pc=00020300..00020310
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -197,16 +179,7 @@ Contents of the \.eh_frame section:
DW_CFA_nop
DW_CFA_nop
-000002c8 0000001c 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 10 20 30 40 50 60 70 80
-
-
-000002e8 0000001c 00000024 FDE cie=000002c8 pc=00020300..00020310
+000002b8 0000001c 000001d4 FDE cie=000000e8 pc=00020310..00020330
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -215,30 +188,7 @@ Contents of the \.eh_frame section:
DW_CFA_nop
DW_CFA_nop
-00000308 0000001c 00000044 FDE cie=000002c8 pc=00020310..00020330
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
-
-00000328 0000001c 00000000 CIE
- Version: 1
- Augmentation: "zPR"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 00 10 20 30 40 50 60 70 80 00
-
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
-
-00000348 0000001c 00000024 FDE cie=00000328 pc=00020330..00020340
+000002d8 0000001c 00000194 FDE cie=00000148 pc=00020330..00020340
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -249,7 +199,7 @@ Contents of the \.eh_frame section:
# FDE for .discard removed
# zPR2 removed
-00000368 0000001c 00000044 FDE cie=00000328 pc=00020340..00020370
+000002f8 0000001c 000001b4 FDE cie=00000148 pc=00020340..00020370
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -258,24 +208,13 @@ Contents of the \.eh_frame section:
DW_CFA_nop
DW_CFA_nop
-00000388 0000001c 00000064 FDE cie=00000328 pc=00020370..000203b0
- DW_CFA_nop
+00000318 0000001c 000001d4 FDE cie=00000148 pc=00020370..000203b0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-
-000003a8 0000000c 00000000 CIE
- Version: 1
- Augmentation: ""
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
-
- DW_CFA_nop
- DW_CFA_nop
DW_CFA_nop
-000003b8 00000014 00000014 FDE cie=000003a8 pc=000203b0..000203c0
+00000338 00000014 0000033c FDE cie=00000000 pc=000203b0..000203c0
diff --git a/ld/testsuite/ld-mips-elf/eh-frame4.d b/ld/testsuite/ld-mips-elf/eh-frame4.d
index effb457..e56d8e0 100644
--- a/ld/testsuite/ld-mips-elf/eh-frame4.d
+++ b/ld/testsuite/ld-mips-elf/eh-frame4.d
@@ -1,9 +1,9 @@
#name: MIPS eh-frame 4
#source: eh-frame1.s
#source: eh-frame1.s
-#as: -EB -mips3 -mabi=eabi --defsym alignment=2 --defsym fill=0 --defsym foo=0x50607080
+#as: -EB -mips3 -mabi=eabi --defsym alignment=2 --defsym fill=0
#readelf: -wf
-#ld: -EB -Teh-frame1.ld
+#ld: -EB -Teh-frame1.ld --defsym foo=0x50607080
#
# This test is for the semi-official ILP32 variation of EABI64.
#
@@ -102,107 +102,54 @@ Contents of the \.eh_frame section:
DW_CFA_nop
DW_CFA_nop
-00000134 0000000c 00000000 CIE
- Version: 1
- Augmentation: ""
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
-
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
-
-00000144 0000000c 00000014 FDE cie=00000134 pc=000201d0..000201e0
+00000134 0000000c 00000138 FDE cie=00000000 pc=000201d0..000201e0
# basic1 removed, followed by repeat of above
-00000154 0000000c 00000024 FDE cie=00000134 pc=000201e0..000201f0
-
-00000164 0000000c 00000034 FDE cie=00000134 pc=000201f0..00020210
-
-00000174 0000000c 00000044 FDE cie=00000134 pc=00020210..00020240
+00000144 0000000c 00000148 FDE cie=00000000 pc=000201e0..000201f0
-00000184 0000000c 00000054 FDE cie=00000134 pc=00020240..00020280
+00000154 0000000c 00000158 FDE cie=00000000 pc=000201f0..00020210
-00000194 0000000c 00000064 FDE cie=00000134 pc=00020280..000202d0
+00000164 0000000c 00000168 FDE cie=00000000 pc=00020210..00020240
-000001a4 00000014 00000000 CIE
- Version: 1
- Augmentation: "zP"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 00 50 60 70 80
+00000174 0000000c 00000178 FDE cie=00000000 pc=00020240..00020280
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
+00000184 0000000c 00000188 FDE cie=00000000 pc=00020280..000202d0
-000001bc 00000010 0000001c FDE cie=000001a4 pc=000202d0..000202e0
+00000194 00000010 00000138 FDE cie=00000060 pc=000202d0..000202e0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-000001d0 00000010 00000030 FDE cie=000001a4 pc=000202e0..00020300
+000001a8 00000010 0000014c FDE cie=00000060 pc=000202e0..00020300
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-000001e4 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 50 60 70 80
-
-
-000001fc 00000010 0000001c FDE cie=000001e4 pc=00020300..00020310
+000001bc 00000010 00000120 FDE cie=000000a0 pc=00020300..00020310
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000210 00000010 00000030 FDE cie=000001e4 pc=00020310..00020330
- DW_CFA_nop
+000001d0 00000010 00000134 FDE cie=000000a0 pc=00020310..00020330
DW_CFA_nop
DW_CFA_nop
-
-00000224 00000014 00000000 CIE
- Version: 1
- Augmentation: "zPR"
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
- Augmentation data: 00 50 60 70 80 00
-
DW_CFA_nop
-0000023c 00000010 0000001c FDE cie=00000224 pc=00020330..00020340
+000001e4 00000010 00000108 FDE cie=000000e0 pc=00020330..00020340
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
# FDE for .discard removed
# zPR2 removed
-00000250 00000010 00000030 FDE cie=00000224 pc=00020340..00020370
- DW_CFA_nop
- DW_CFA_nop
- DW_CFA_nop
-
-00000264 00000010 00000044 FDE cie=00000224 pc=00020370..000203b0
+000001f8 00000010 0000011c FDE cie=000000e0 pc=00020340..00020370
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000278 0000000c 00000000 CIE
- Version: 1
- Augmentation: ""
- Code alignment factor: 1
- Data alignment factor: 4
- Return address column: 31
-
+0000020c 00000010 00000130 FDE cie=000000e0 pc=00020370..000203b0
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-00000288 0000000c 00000014 FDE cie=00000278 pc=000203b0..000203c0
+00000220 0000000c 00000224 FDE cie=00000000 pc=000203b0..000203c0