aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-03-19 17:13:33 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-03-19 17:23:47 -0700
commit1de96e5de988ec7517639a9de533c8be95b2785e (patch)
tree5d0a2fed987bb16404fa708ba1438eb75286a84a /ld/testsuite/ld-x86-64
parent15407e7e0d42a46de5534df22eec933fc45178a3 (diff)
downloadgdb-1de96e5de988ec7517639a9de533c8be95b2785e.zip
gdb-1de96e5de988ec7517639a9de533c8be95b2785e.tar.gz
gdb-1de96e5de988ec7517639a9de533c8be95b2785e.tar.bz2
x86-64: Add a testcase for PR ld/27590
PR ld/27590 * testsuite/ld-x86-64/pr27590.rd: New file. * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise. * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r--ld/testsuite/ld-x86-64/pr27590.rd11
-rw-r--r--ld/testsuite/ld-x86-64/pr27590a.obj.bz2bin0 -> 1202 bytes
-rw-r--r--ld/testsuite/ld-x86-64/pr27590b.obj.bz2bin0 -> 1202 bytes
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp5
4 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr27590.rd b/ld/testsuite/ld-x86-64/pr27590.rd
new file mode 100644
index 0000000..1946984
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr27590.rd
@@ -0,0 +1,11 @@
+#...
+ \[[ 0-9]+\] .gnu.debuglto_.debug_info PROGBITS +0+ 0+28a 0+42 00 +E 0 +0 1
+ \[[ 0-9]+\] .rela.gnu.debuglto_.debug_info RELA +0+ 0+810 0+f0 18 +I 26 17 8
+ \[[ 0-9]+\] .gnu.debuglto_.debug_abbrev PROGBITS +0+ 0+2cc 0+26 00 +E 0 +0 1
+ \[[ 0-9]+\] .gnu.debuglto_.debug_macro PROGBITS +0+ 0+2f2 0+2a 00 +E 0 +0 1
+ \[[ 0-9]+\] .rela.gnu.debuglto_.debug_macro RELA +0+ 0+900 0+60 18 +I 26 20 8
+ \[[ 0-9]+\] .gnu.debuglto_.debug_macro PROGBITS +0+ 0+31c 0+10 00 GE 0 +0 1
+ \[[ 0-9]+\] .rela.gnu.debuglto_.debug_macro RELA +0+ 0+960 0+30 18 IG 26 22 8
+ \[[ 0-9]+\] .gnu.debuglto_.debug_line PROGBITS +0+ 0+32c 0+8a 00 +E 0 +0 1
+ \[[ 0-9]+\] .gnu.debuglto_.debug_str PROGBITS +0+ 0+3b6 0+15c 01 MSE 0 +0 1
+#pass
diff --git a/ld/testsuite/ld-x86-64/pr27590a.obj.bz2 b/ld/testsuite/ld-x86-64/pr27590a.obj.bz2
new file mode 100644
index 0000000..f220c95
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr27590a.obj.bz2
Binary files differ
diff --git a/ld/testsuite/ld-x86-64/pr27590b.obj.bz2 b/ld/testsuite/ld-x86-64/pr27590b.obj.bz2
new file mode 100644
index 0000000..f220c95
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr27590b.obj.bz2
Binary files differ
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index db3bd14..877d6ba 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -226,6 +226,11 @@ set x86_64tests {
"" ""
{ pr27587a.obj.bz2 pr27587b.obj.bz2 }
{{ld "pr27587.err"}} "pr27587"}
+ {"Build pr27590.o"
+ "-r -melf_x86_64"
+ "" ""
+ { pr27590a.obj.bz2 pr27590b.obj.bz2 }
+ {{readelf -SW pr27590.rd}} "pr27590.o"}
}
run_ld_link_tests $x86_64tests