x86-64: Add a testcase for PR ld/27590
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Mar 2021 00:13:33 +0000 (17:13 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Mar 2021 00:23:47 +0000 (17:23 -0700)
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.

ld/ChangeLog
ld/testsuite/ld-x86-64/pr27590.rd [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr27590a.obj.bz2 [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr27590b.obj.bz2 [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp

index 0be65fc38866d82f91169373ac4e364bf6e44935..cdbdc7b6fb97e19637a12b23d11df2ab97313e4e 100644 (file)
@@ -1,3 +1,11 @@
+2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       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.
+
 2021-03-20  Alan Modra  <amodra@gmail.com>
 
        PR 27590
diff --git a/ld/testsuite/ld-x86-64/pr27590.rd b/ld/testsuite/ld-x86-64/pr27590.rd
new file mode 100644 (file)
index 0000000..1946984
--- /dev/null
@@ -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 (file)
index 0000000..f220c95
Binary files /dev/null and b/ld/testsuite/ld-x86-64/pr27590a.obj.bz2 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 (file)
index 0000000..f220c95
Binary files /dev/null and b/ld/testsuite/ld-x86-64/pr27590b.obj.bz2 differ
index db3bd140193921873b00ce5f6fcf15559734033b..877d6ba5fa4b680a2235c31b2abbbb4b787a4f91 100644 (file)
@@ -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
This page took 0.029619 seconds and 4 git commands to generate.