summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-08-08 19:06:16 +0300
committerMark Wielaard <mark@klomp.org>2017-08-09 20:36:24 +0200
commit8f0140ace401197beaed1df6a48f259756d8bbd9 (patch)
treeb05bf35c30c0d04a907be58e272e1ab589ebfd59
parent54ba4ce2973113d8f4315d4fc90e16a9b4476ea6 (diff)
tests: robustify run-strip-nothing.sh against unstripped libc_nonshared.a
When glibc's libc_nonshared.a contains objects with debug info, this debug info is leaked into every output file produced by gcc. Change run-strip-nothing.sh to use "gcc -s" instead of plain "gcc" for producing objects without debug info. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
-rw-r--r--tests/ChangeLog4
-rwxr-xr-xtests/run-strip-nothing.sh2
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 04efdc81..94f4cf23 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2017-08-08 Dmitry V. Levin <ldv@altlinux.org>
+
+ * run-strip-nothing.sh: Add -s.
+
2017-07-26 Mark Wielaard <mark@klomp.org>
* dwarf-getmacros.c (mac): Use DW_MACRO names instead of DW_MACRO_GNU.
diff --git a/tests/run-strip-nothing.sh b/tests/run-strip-nothing.sh
index e80bd906..914fdfbf 100755
--- a/tests/run-strip-nothing.sh
+++ b/tests/run-strip-nothing.sh
@@ -23,7 +23,7 @@
tempfiles a.out strip.out debug.out
# Create no-debug a.out.
-echo "int main() { return 1; }" | gcc -xc -
+echo "int main() { return 1; }" | gcc -s -xc -
# strip to file
testrun ${abs_top_builddir}/src/strip -g -o strip.out ||