PATCH: Add --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] to ld
Andreas Schwab
schwab@linux-m68k.org
Tue Apr 28 19:26:00 GMT 2015
"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
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Binutils
mailing list