From: H.J. Lu Date: Wed, 27 Apr 2016 12:25:18 +0000 (-0700) Subject: Pass --compress-debug-sections=none to ld X-Git-Tag: users/ARM/embedded-gdb-2_26-branch-2016q1~6^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c9e2af6c6556be31db02c5079a834283ae379e0;p=thirdparty%2Fbinutils-gdb.git Pass --compress-debug-sections=none to ld Since ld may generate compressed debug sections by default, pass --compress-debug-sections=none to ld to avoid compressed debug sections. Since not all ELF targets use the elf.em emulation to support ld option: --compress-debug-sections=zlib-gnu, limit compressed1b.d to Linux/GNU targets. Backport from master * testsuite/ld-elf/compressed1b.d: Pass --compress-debug-sections=none to ld. * testsuite/ld-elf/compressed1c.d: Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 6ed2e24e15f..c3eeded608b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,16 @@ +2016-04-30 H.J. Lu + + Backport from master + 2016-04-27 H.J. Lu + + * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets. + + 2016-04-27 H.J. Lu + + * ld-elf/compressed1b.d: Pass --compress-debug-sections=none + to ld. + * ld-elf/compressed1c.d: Likewise. + 2016-04-04 H.J. Lu Backport from master diff --git a/ld/testsuite/ld-elf/compressed1b.d b/ld/testsuite/ld-elf/compressed1b.d index 83dc60f48e0..34dfe8ef660 100644 --- a/ld/testsuite/ld-elf/compressed1b.d +++ b/ld/testsuite/ld-elf/compressed1b.d @@ -1,7 +1,8 @@ #source: compress1.s #as: --compress-debug-sections=zlib-gabi -#ld: -r +#ld: -r --compress-debug-sections=none #readelf: -t +#target: *-*-linux* *-*-gnu* #failif #... diff --git a/ld/testsuite/ld-elf/compressed1c.d b/ld/testsuite/ld-elf/compressed1c.d index 64f75be70a8..29e91dab8ec 100644 --- a/ld/testsuite/ld-elf/compressed1c.d +++ b/ld/testsuite/ld-elf/compressed1c.d @@ -1,6 +1,6 @@ #source: compress1.s #as: --compress-debug-sections=zlib-gabi -#ld: -shared +#ld: -shared --compress-debug-sections=none #readelf: -t #target: *-*-linux* *-*-gnu*