This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] to ld
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 28 Apr 2015 12:29:16 -0700
- Subject: Re: PATCH: Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] to ld
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOr2tu2v033H0HjfXTCaKbHCtMbXqXsqfoafCimUR_fZ9A at mail dot gmail dot com> <20150415005524 dot GB31531 at bubble dot grove dot modra dot org> <CAMe9rOrDsmL-NfuiuFewEvmO=LLCmafxaVqCo+VMW2aaztaEww at mail dot gmail dot com> <20150415035850 dot GA30136 at bubble dot grove dot modra dot org> <CAMe9rOoWJQf-_101GEHHz_xW0K62r3Y0OYRCEnOPsBPfMfM1Ew at mail dot gmail dot com> <87lhhc2gwk dot fsf at igel dot home>
On Tue, Apr 28, 2015 at 12:26 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
>> +set test gabinormal
>> +set test_name "Link with zlib-gabi compressed debug output"
>> +send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
>> +set got [remote_exec host "$READELF -w tmpdir/$test" "" "/dev/null" "tmpdir/$test.out"]
>> +if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
>> + send_log "$got\n"
>> + unresolved "$test_name"
>> +}
>> +if { [catch {exec cmp tmpdir/normal.out tmpdir/$test.out}] } then {
>> + send_log "tmpdir/normal.out tmpdir/$test.out differ.\n"
>> + fail "$test_name"
>> +} else {
>> + pass "$test_name"
>> +}
>> +send_log "$READELF -t -W tmpdir/$test > tmpdir/$test.out\n"
>> +set got [remote_exec host "$READELF -t -W tmpdir/$test" "" "/dev/null" "tmpdir/$test.out"]
>> +if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
>> + send_log "$got\n"
>> + unresolved "$test_name"
>> +}
>> +if { [regexp_diff tmpdir/$test.out $srcdir/$subdir/$test.rt] } then {
>> + fail "$test_name"
>> +} else {
>> + pass "$test_name"
>> +}
>
> [26] .debug_aranges
> PROGBITS 0000000000000000 001440 000093 00 0 0 16
> [0000000000000800]: COMPRESSED
> ZLIB, 0000000000000180, 16
>
> regexp_diff match failure
> regexp "^ +ZLIB, [0-9a-f]+, 1$"
> line " ZLIB, 0000000000000180, 16"
> FAIL: Link with zlib-gabi compressed debug output
>
Which target requires 16-byte alignment on .debug_aranges section?
--
H.J.