From 1de96e5de988ec7517639a9de533c8be95b2785e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 19 Mar 2021 17:13:33 -0700 Subject: [PATCH] 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. --- ld/ChangeLog | 8 ++++++++ ld/testsuite/ld-x86-64/pr27590.rd | 11 +++++++++++ ld/testsuite/ld-x86-64/pr27590a.obj.bz2 | Bin 0 -> 1202 bytes ld/testsuite/ld-x86-64/pr27590b.obj.bz2 | Bin 0 -> 1202 bytes ld/testsuite/ld-x86-64/x86-64.exp | 5 +++++ 5 files changed, 24 insertions(+) create mode 100644 ld/testsuite/ld-x86-64/pr27590.rd create mode 100644 ld/testsuite/ld-x86-64/pr27590a.obj.bz2 create mode 100644 ld/testsuite/ld-x86-64/pr27590b.obj.bz2 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 0000000000000000000000000000000000000000..f220c958a9fca4bad70a1543de019fa5a2b5ab61 GIT binary patch literal 1202 zcmV;j1Wo%wT4*^jL0KkKS&@-W_5cLYfB*mg`v30d|NDRM-jKil-|)b|W@2J70#H!^ zVkCf2aYE1p8X;6$Y={knqClFbk)|3oF-8Q_WdZ3l+C~YcfYG6*fEo=0Muy61pwmI2 z>6G;v2}F$mMg$;_BpD3@Mu0K^&;S4c003wJ4FRAMBtmK@>Y4_DpvVIt&;S6?007fK z01W^D0Av7zOiTzc0W{N1Faa0{#L0k600dze00dwJ$&(3)L8c}I7yz1SrkDVX1Y%^s zCIA93i~s^K0%XaA#9_p=70F=J71vh9(E1djhRGK0B!v`0mDQJZW^MBqH#tj%n8(K=D|xzV%s--qCqfVHluP_ zi47(~yQPTg?oQxaUb8xv-2hy_bT zm?Vqg=UPa(Yr}hqBnK&m?XLT@t)ltqS|>Xs7oBLuVgyZyDrill4WJWaXcls!FWO(V zEw4nX)lX)jSwz=zv)=a;y%i+euu2Q1ADYnh%Mo$kmf3%O7|nJs-{156RE4E1yH?i| zH)CxV?7?ZeEhu`XFR#b(ywUaKS(5+xa@8ltl+zSdDfrkUN;u|?cw{>=n+L1H)_|c` zI$K~))BLeEgglH2)_@^e$VIzI4xeJaoa~ehiuI#uWMfzt5d=801fv-NV^~)33DE=~ zVQGjj^e~X6I1l4ebm((75}2xM3Pf3CB`P6N2fAwk9#xt}o*{ zvh{NgaT}@8+8~p2Pw8C3qG|ek2Q~MC@`$lWr5Niyh8biSBB&^;woJ$Ju7i)74i^U{ z5bJWY9KOiJLnDUU5kqH)Ca6I%j8+2SD<{79k+xrGIX==90pntcAWONVX2AI^*QV*R zAgI86^_U5ZhY%TS06;u@Yq@q(FcrWvEJ+v`ajCqn00%(RMDhi^M$1JM3sI+}306Fb zVL+x?S3o}K5hb}cMB{G+YJN)##b4E}rq&p_^k&yFGK(L(OxLAupPDhrB`t#6G4#NK z!~rtND(G;yDe9G{*##pQ;wB7s$WtwfW3DsI#yG8vLE0>+mP(KTl7k-t^{yR)B}XZU zH_6Cccx1>J{Lr|^5+`Y`h=p(ur6y@i`sR)z4aO^hH&TlX10Zd1%U({-mSmQITc9XP z*>O?ZNKgA5aS2fqI;>K`F}H9iD7@7mZUa^G6Ctr`X8B#HhDzYiTqCrCpgh*&Nt)Yd zmc`YUXHlcGM|`d;2L=l<75u}qfIRj6!oZ*la@}vcWPUnK29A?eLN40|7@KDLJqYOX zPflP7miEOyrYK)?~3fyBWRVSq&l6xWpQr&P6$N==ng;kQ;de)4Z z>pNLY!5&Dc3JbTQ5(PwelZO9v9^48E4xL&miTX-#_k{nI(Jf7LlddeLkMpjqsy8a= QsPFt;$rRy2LPkY9*k9QjDF6Tf literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f220c958a9fca4bad70a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XZU zH_6Cccx1>J{Lr|^5+`Y`h=p(ur6y@i`sR)z4aO^hH&TlX10Zd1%U({-mSmQITc9XP z*>O?ZNKgA5aS2fqI;>K`F}H9iD7@7mZUa^G6Ctr`X8B#HhDzYiTqCrCpgh*&Nt)Yd zmc`YUXHlcGM|`d;2L=l<75u}qfIRj6!oZ*la@}vcWPUnK29A?eLN40|7@KDLJqYOX zPflP7miEOyrYK)?~3fyBWRVSq&l6xWpQr&P6$N==ng;kQ;de)4Z z>pNLY!5&Dc3JbTQ5(PwelZO9v9^48E4xL&miTX-#_k{nI(Jf7LlddeLkMpjqsy8a= QsPFt;$rRy2LPkY9*k9QjDF6Tf literal 0 HcmV?d00001 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 -- 2.30.2