PATCH: Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] to ld
H.J. Lu
hjl.tools@gmail.com
Tue Apr 28 19:29:00 GMT 2015
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.
More information about the Binutils
mailing list