From: H.J. Lu Date: Sat, 20 Mar 2021 00:13:33 +0000 (-0700) Subject: x86-64: Add a testcase for PR ld/27590 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1de96e5de988ec7517639a9de533c8be95b2785e;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 0be65fc3886..cdbdc7b6fb9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2021-03-19 H.J. Lu + + 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 PR 27590 diff --git a/ld/testsuite/ld-x86-64/pr27590.rd b/ld/testsuite/ld-x86-64/pr27590.rd new file mode 100644 index 00000000000..19469848c41 --- /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 00000000000..f220c958a9f 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 index 00000000000..f220c958a9f Binary files /dev/null and b/ld/testsuite/ld-x86-64/pr27590b.obj.bz2 differ diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index db3bd140193..877d6ba5fa4 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