]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Pass --compress-debug-sections=none to ld
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 27 Apr 2016 12:25:18 +0000 (05:25 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 30 Apr 2016 12:36:38 +0000 (05:36 -0700)
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.

ld/ChangeLog
ld/testsuite/ld-elf/compressed1b.d
ld/testsuite/ld-elf/compressed1c.d

index 6ed2e24e15f3f7a77e9b26e5e5fb5aa72ab5dc26..c3eeded608b25cee68fed2a4ff390d7818905018 100644 (file)
@@ -1,3 +1,16 @@
+2016-04-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Backport from master
+       2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/compressed1b.d: Only run for Linux/GNU targets.
+
+       2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-elf/compressed1b.d: Pass --compress-debug-sections=none
+       to ld.
+       * ld-elf/compressed1c.d: Likewise.
+
 2016-04-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        Backport from master
index 83dc60f48e012d4d6d3899de864a6caff25efbca..34dfe8ef660d5cb9fc3a5f86d036aaf37d0e0b93 100644 (file)
@@ -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
 #...
index 64f75be70a8cc440a678abd656ebbe4f2c2d3e1a..29e91dab8ec5f79c82e209472bf50d023c3efb72 100644 (file)
@@ -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*