]> git.pld-linux.org Git - packages/elfutils.git/blob - elfutils-tests.patch
separate libs and tools; rel 2
[packages/elfutils.git] / elfutils-tests.patch
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
5  libc_nonshared.a
6
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.
11
12 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
13 ---
14  tests/ChangeLog            | 4 ++++
15  tests/run-strip-nothing.sh | 2 +-
16  2 files changed, 5 insertions(+), 1 deletion(-)
17
18 diff --git a/tests/ChangeLog b/tests/ChangeLog
19 index 04efdc8..94f4cf2 100644
20 --- a/tests/ChangeLog
21 +++ b/tests/ChangeLog
22 @@ -1,3 +1,7 @@
23 +2017-08-08  Dmitry V. Levin <ldv@altlinux.org>
24 +
25 +       * run-strip-nothing.sh: Add -s.
26 +
27  2017-07-26  Mark Wielaard  <mark@klomp.org>
28  
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
34 @@ -23,7 +23,7 @@
35  tempfiles a.out strip.out debug.out
36  
37  # Create no-debug a.out.
38 -echo "int main() { return 1; }" | gcc -xc -
39 +echo "int main() { return 1; }" | gcc -s -xc -
40  
41  # strip to file
42  testrun ${abs_top_builddir}/src/strip -g -o strip.out ||
43 -- 
44 2.9.3
45
This page took 0.032226 seconds and 3 git commands to generate.