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.
+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
#source: compress1.s
#as: --compress-debug-sections=zlib-gabi
-#ld: -r
+#ld: -r --compress-debug-sections=none
#readelf: -t
+#target: *-*-linux* *-*-gnu*
#failif
#...
#source: compress1.s
#as: --compress-debug-sections=zlib-gabi
-#ld: -shared
+#ld: -shared --compress-debug-sections=none
#readelf: -t
#target: *-*-linux* *-*-gnu*