From c38166b376b03dc967b2715a09db0b5667fa9e49 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 28 Jul 2020 10:43:34 +0930 Subject: [PATCH] Re: Allow new just-symbols test to run on XCOFF and PE This ensures we don't match random data *before* the line we want to see, ie. that --just-symbols has excluded section contents from just-symbols-0.o. Oops, missed the ChangeLog entry before too. * testsuite/ld-misc/just-symbols-1.dd: Revert last change. --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-misc/just-symbols-1.dd | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 99dfea8c0ec..7ef623c1b57 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,8 +1,14 @@ +2020-07-28 Alan Modra + + * testsuite/ld-misc/just-symbols-1.dd: Revert last change. + 2020-07-27 Alan Modra * testsuite/ld-misc/just-symbols.exp: Run for x86_64 PE too. Set LDFLAGS for PE and XCOFF. * testsuite/ld-misc/just-symbols.ld: Accept XCOFF mapped .data. + * testsuite/ld-misc/just-symbols-1.dd: Don't check format or + "Contents of section" lines. 2020-07-27 Alan Modra diff --git a/ld/testsuite/ld-misc/just-symbols-1.dd b/ld/testsuite/ld-misc/just-symbols-1.dd index 9502566ac9c..8908a235ae9 100644 --- a/ld/testsuite/ld-misc/just-symbols-1.dd +++ b/ld/testsuite/ld-misc/just-symbols-1.dd @@ -1,3 +1,5 @@ -#... +.*: +file format .* + +Contents of section \.data: [0-9a-f]+ (?:(:?12000000|00120000|00000012) 0{8}|0{8} 00000012) 0{8} 0{8} .* #pass -- 2.30.2