[PATCH] Add SHF_COMPRESSED support to gas and objcopy
H.J. Lu
hjl.tools@gmail.com
Thu Apr 9 18:01:00 GMT 2015
On Thu, Apr 9, 2015 at 9:00 AM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:
>> From: "H.J. Lu" <hongjiu.lu@intel.com>
>> Date: Mon, 6 Apr 2015 21:32:08 +0200
>
>> Any comments, suggestions or objections?
>
>> binutils/testsuite/
>>
>> * compress.exp: Add tests for
>> --compress-debug-sections=3D{none|zlib|zlib-gnu|zlib-gabi}.
>> * binutils-all/dw2-3.rS: New file.
>> * binutils-all/dw2-3.rt: Likewise.
>> * binutils-all/libdw2-compressedgabi.out: Likewise.
>
> The new tests fail for cris-elf, cris-linux:
>
> Running /tmp/hpautotest-binutils/bsrc/src/binutils/testsuite/binutils-all/compress.exp ...
> FAIL: objcopy (objcopy compress debug sections with zlib-gabi)
>
> In binutils.log:
>
> Executing on host: /tmp/hpautotest-binutils/cris-axis-elf/binutils/objcopy --compress-debug-sections=zlib-gabi tmpdir/dw
> 2-1.o tmpdir/debug_str.copygabi.o (timeout = 300)
> spawn /tmp/hpautotest-binutils/cris-axis-elf/binutils/objcopy --compress-debug-sections=zlib-gabi tmpdir/dw2-1.o tmpdir/debug_str.copygabi.o
> /tmp/hpautotest-binutils/cris-axis-elf/binutils/objcopy: --compress-debug-sections=[zlib|zlib-gnu|zlib-gabi] is unsupported for `a.out-cris'
> /tmp/hpautotest-binutils/cris-axis-elf/binutils/objcopy: --compress-debug-sections=[zlib|zlib-gnu|zlib-gabi] is unsupported for `a.out-cris'
>
> FAIL: objcopy (objcopy compress debug sections with zlib-gabi)
>
> There's not a.out-cris object involved; the object format is
> misinterpreted supposedly in the presence of the compressed
> debug. (I checked the files.)
>
I checked in this patch to fix it.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Properly-check-compress-debug-sections-XXX.patch
Type: text/x-patch
Size: 4935 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150409/2eb0f6a8/attachment.bin>
More information about the Binutils
mailing list