aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorYunQiang Su <yunqiang.su@cipunited.com>2023-05-10 21:22:41 +0800
committerYunQiang Su <yunqiang.su@cipunited.com>2023-06-05 11:00:15 +0800
commitcb81e84c72933a7fad10b75b7e270d92d8d65251 (patch)
tree164fe3a2e1f66a0a1ac49327bd465aff68ead0ea /ld/testsuite/ld-elf
parentffc528aed56b9e2c171137da28690a9bb6861b0b (diff)
downloadgdb-cb81e84c72933a7fad10b75b7e270d92d8d65251.zip
gdb-cb81e84c72933a7fad10b75b7e270d92d8d65251.tar.gz
gdb-cb81e84c72933a7fad10b75b7e270d92d8d65251.tar.bz2
MIPS: fix -gnuabi64 testsuite
Test on: mips64-linux-gnuabi64 mips64el-linux-gnuabi64 mipsisa64-linux-gnuabi64 mipsisa64el-linux-gnuabi64 mipsisa64r2-linux-gnuabi64 mipsisa64r2el-linux-gnuabi64 mipsisa64r6-linux-gnuabi64 mipsisa64r6el-linux-gnuabi64
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/eh5.d50
-rw-r--r--ld/testsuite/ld-elf/group.ld2
-rw-r--r--ld/testsuite/ld-elf/orphan-region.ld2
-rw-r--r--ld/testsuite/ld-elf/orphan.ld2
4 files changed, 30 insertions, 26 deletions
diff --git a/ld/testsuite/ld-elf/eh5.d b/ld/testsuite/ld-elf/eh5.d
index 4a69748..3f3fd2d 100644
--- a/ld/testsuite/ld-elf/eh5.d
+++ b/ld/testsuite/ld-elf/eh5.d
@@ -14,7 +14,7 @@ Contents of the .eh_frame section:
Code alignment factor: .*
Data alignment factor: .*
Return address column: .*
- Augmentation data: (0b|1b)
+ Augmentation data: (0b|0c|1b)
DW_CFA_nop
DW_CFA_nop
@@ -24,44 +24,44 @@ Contents of the .eh_frame section:
#? DW_CFA_nop
#? DW_CFA_nop
-0+001[48] 0+0014 0+001[8c] FDE cie=0+0000 pc=.*
+0+001[48] 0+001[4c] 0+001[8c] FDE cie=0+0000 pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa: r0(.*) ofs 16
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-0+00(2c|30) 0+0014 0+0000 CIE
+0+00(2c|30|38) 0+0014 0+0000 CIE
Version: [13]
Augmentation: "zPR"
Code alignment factor: .*
Data alignment factor: .*
Return address column: .*
- Augmentation data: 03 .. .. .. .. (0b|1b)
+ Augmentation data: 03 .. .. .. .. (0b|0c|1b)
DW_CFA_nop
-0+004[48] 0+0014 0+001c FDE cie=0+00(2c|30) pc=.*
+0+00(44|48|50) 0+001[4c] 0+001c FDE cie=0+00(2c|30|38) pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa: r0(.*) ofs 16
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-0+00(5c|60) 0+0014 0+006[04] FDE cie=0+0000 pc=.*
+0+00(5c|60|70) 0+001[4c] 0+00(60|64|74) FDE cie=0+0000 pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa: r0(.*) ofs 16
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-0+007[48] 0+001[8c] 0+0000 CIE
+0+00(74|78|90) 0+001[8c] 0+0000 CIE
Version: [13]
Augmentation: "zPLR"
Code alignment factor: .*
Data alignment factor: .*
Return address column: .*
- Augmentation data: 03 .. .. .. .. 0c (0b|1b)
+ Augmentation data: 03 .. .. .. .. 0c (0b|0c|1b)
DW_CFA_nop
DW_CFA_nop
@@ -71,7 +71,7 @@ Contents of the .eh_frame section:
#? DW_CFA_nop
#? DW_CFA_nop
-0+009[08] 0+001c 0+002[04] FDE cie=0+007[48] pc=.*
+0+00(90|98|b0) 0+00(1c|24) 0+002[04] FDE cie=0+00(74|78|90) pc=.*
Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef)
DW_CFA_advance_loc: 4 to .*
@@ -80,13 +80,13 @@ Contents of the .eh_frame section:
DW_CFA_nop
DW_CFA_nop
-0+00b[08] 0+001[04] 0+0000 CIE
+0+00(b0|b8|d8) 0+001[04] 0+0000 CIE
Version: [13]
Augmentation: "zR"
Code alignment factor: .*
Data alignment factor: .*
Return address column: .*
- Augmentation data: (0b|1b)
+ Augmentation data: (0b|0c|1b)
DW_CFA_def_cfa: r0(.*) ofs 16
#? DW_CFA_nop
@@ -94,7 +94,7 @@ Contents of the .eh_frame section:
#? DW_CFA_nop
#? DW_CFA_nop
-0+00(c4|d0) 0+001[04] 0+001[8c] FDE cie=0+00b[08] pc=.*
+0+00(c4|d0|f0) 0+001[048] 0+001[8c] FDE cie=0+00(b0|b8|d8) pc=.*
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -103,24 +103,28 @@ Contents of the .eh_frame section:
#? DW_CFA_nop
#? DW_CFA_nop
-0+00[de]8 0+0014 0+0000 CIE
+0+0(0d8|0e8|10c) 0+001[48] 0+0000 CIE
Version: [13]
Augmentation: "zPR"
Code alignment factor: .*
Data alignment factor: .*
Return address column: .*
- Augmentation data: 03 .. .. .. .. (0b|1b)
+ Augmentation data: 03 .. .. .. .. (0b|0c|1b)
DW_CFA_nop
+#? DW_CFA_nop
+#? DW_CFA_nop
+#? DW_CFA_nop
+#? DW_CFA_nop
-0+0(0f|10)0 0+0014 0+001c FDE cie=0+00[de]8 pc=.*
+0+0(0f0|100|128) 0+001[4c] 0+00(1c|20) FDE cie=0+0(0d8|0e8|10c) pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa: r0(.*) ofs 16
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-0+01[01]8 0+001[04] 0+00(5c|64) FDE cie=0+00b[08] pc=.*
+0+01[014]8 0+001[048] 0+00(5c|64|74) FDE cie=0+00(b0|b8|d8) pc=.*
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
@@ -129,13 +133,13 @@ Contents of the .eh_frame section:
#? DW_CFA_nop
#? DW_CFA_nop
-0+01(1c|30) 0+001[8c] 0+0000 CIE
+0+0(11c|130|164) 0+001[8c] 0+0000 CIE
Version: [13]
Augmentation: "zPLR"
Code alignment factor: .*
Data alignment factor: .*
Return address column: .*
- Augmentation data: 03 .. .. .. .. 0c (0b|1b)
+ Augmentation data: 03 .. .. .. .. 0c (0b|0c|1b)
DW_CFA_nop
DW_CFA_nop
@@ -145,7 +149,7 @@ Contents of the .eh_frame section:
#? DW_CFA_nop
#? DW_CFA_nop
-0+01(38|50) 0+001c 0+002[04] FDE cie=0+01(1c|30) pc=.*
+0+01(38|50|80) 0+00(1c|24|2c) 0+002[04] FDE cie=0+01(1c|30|64) pc=.*
Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef)
DW_CFA_advance_loc: 4 to .*
@@ -154,7 +158,7 @@ Contents of the .eh_frame section:
DW_CFA_nop
DW_CFA_nop
-0+01(58|70) 0+0014 0+01(5c|74) FDE cie=0+0000 pc=.*
+0+01(58|70|a8) 0+001[4c] 0+01(5c|74|ac) FDE cie=0+0000 pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa: r0(.*) ofs 16
DW_CFA_nop
@@ -170,14 +174,14 @@ Contents of the .eh_frame section:
#? Augmentation data: 03 .. .. .. .. 1b
#? DW_CFA_nop
-0+01(70|88) 0+0014 0+0(01c|148|15c) FDE cie=0+0(02c|030|170) pc=.*
+0+01(70|88|c8) 0+001[4c] 0+0(01c|148|15c|194) FDE cie=0+0(02c|030|038|170|188) pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa: r0(.*) ofs 16
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
-0+01(88|a0) 0+0014 0+01(8c|a4) FDE cie=0+0000 pc=.*
+0+01(88|a0|e8) 0+001[4c] 0+01(8c|a4|ec) FDE cie=0+0000 pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa: r0(.*) ofs 16
DW_CFA_nop
@@ -195,7 +199,7 @@ Contents of the .eh_frame section:
#? DW_CFA_nop
#? DW_CFA_nop
-0+01(a0|b8|d4) 0+001c 0+0(020|130|144) FDE cie=0+0(074|078|1b8) pc=.*
+0+0(1a0|1b8|1d4|208) 0+00(1c|24) 0+0(020|130|144|17c) FDE cie=0+0(074|078|090|1b8) pc=.*
Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef)
DW_CFA_advance_loc: 4 to .*
diff --git a/ld/testsuite/ld-elf/group.ld b/ld/testsuite/ld-elf/group.ld
index 53e2790..1c561b6 100644
--- a/ld/testsuite/ld-elf/group.ld
+++ b/ld/testsuite/ld-elf/group.ld
@@ -8,5 +8,5 @@ SECTIONS
{
. = 0x1000;
.text : { *(.text) *(.rodata.brlt) } :image :header
- /DISCARD/ : { *(.dropme) *(.reginfo) *(.MIPS.abiflags) }
+ /DISCARD/ : { *(.dropme) *(.reginfo) *(.MIPS.abiflags) *(.MIPS.options) }
}
diff --git a/ld/testsuite/ld-elf/orphan-region.ld b/ld/testsuite/ld-elf/orphan-region.ld
index 71834df..f4f7e18 100644
--- a/ld/testsuite/ld-elf/orphan-region.ld
+++ b/ld/testsuite/ld-elf/orphan-region.ld
@@ -7,5 +7,5 @@ SECTIONS
{
.text : ALIGN (4) { *(.text) } > region
.rodata : ALIGN (4) { *(.rodata) } > region
- /DISCARD/ : { *(.reginfo) *(.MIPS.abiflags) *(.trampolines) *(.riscv.attributes) }
+ /DISCARD/ : { *(.reginfo) *(.MIPS.abiflags) *(.MIPS.options) *(.trampolines) *(.riscv.attributes) }
}
diff --git a/ld/testsuite/ld-elf/orphan.ld b/ld/testsuite/ld-elf/orphan.ld
index 8b5015e..86c0b89 100644
--- a/ld/testsuite/ld-elf/orphan.ld
+++ b/ld/testsuite/ld-elf/orphan.ld
@@ -6,5 +6,5 @@ SECTIONS
.bss : { *(.bss) *(COMMON) }
.sbss : { *(.sbss) }
.note : { *(.note) }
- /DISCARD/ : { *(.reginfo) *(.MIPS.abiflags) *(.trampolines) }
+ /DISCARD/ : { *(.reginfo) *(.MIPS.abiflags) *(.MIPS.options) *(.trampolines) }
}