1 From 8f0140ace401197beaed1df6a48f259756d8bbd9 Mon Sep 17 00:00:00 2001
2 From: "Dmitry V. Levin" <ldv@altlinux.org>
3 Date: Tue, 8 Aug 2017 19:06:16 +0300
4 Subject: [PATCH] tests: robustify run-strip-nothing.sh against unstripped
7 When glibc's libc_nonshared.a contains objects with debug info,
8 this debug info is leaked into every output file produced by gcc.
9 Change run-strip-nothing.sh to use "gcc -s" instead of plain "gcc"
10 for producing objects without debug info.
12 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
14 tests/ChangeLog | 4 ++++
15 tests/run-strip-nothing.sh | 2 +-
16 2 files changed, 5 insertions(+), 1 deletion(-)
18 diff --git a/tests/ChangeLog b/tests/ChangeLog
19 index 04efdc8..94f4cf2 100644
23 +2017-08-08 Dmitry V. Levin <ldv@altlinux.org>
25 + * run-strip-nothing.sh: Add -s.
27 2017-07-26 Mark Wielaard <mark@klomp.org>
29 * dwarf-getmacros.c (mac): Use DW_MACRO names instead of DW_MACRO_GNU.
30 diff --git a/tests/run-strip-nothing.sh b/tests/run-strip-nothing.sh
31 index e80bd90..914fdfb 100755
32 --- a/tests/run-strip-nothing.sh
33 +++ b/tests/run-strip-nothing.sh
35 tempfiles a.out strip.out debug.out
37 # Create no-debug a.out.
38 -echo "int main() { return 1; }" | gcc -xc -
39 +echo "int main() { return 1; }" | gcc -s -xc -
42 testrun ${abs_top_builddir}/src/strip -g -o strip.out ||