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>
Wed, 27 Apr 2016 12:28:08 +0000 (05:28 -0700)
Since ld may generate compressed debug sections by default, pass
--compress-debug-sections=none to ld to avoid compressed debug
sections.

* ld-elf/compressed1b.d: Pass --compress-debug-sections=none
to ld.
* ld-elf/compressed1c.d: Likewise.

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

index 21e7c77cc47005ea6f05e8b98dd03f05ede17ed0..62db17087d384e6f1fa42e1db417bb115fba20ea 100644 (file)
@@ -1,3 +1,9 @@
+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-27  Alan Modra  <amodra@gmail.com>
 
        PR target/19985
index 83dc60f48e012d4d6d3899de864a6caff25efbca..04973a46479bd1fd8eee9322f691ba29baa6f19d 100644 (file)
@@ -1,6 +1,6 @@
 #source: compress1.s
 #as: --compress-debug-sections=zlib-gabi
-#ld: -r
+#ld: -r --compress-debug-sections=none
 #readelf: -t
 
 #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*