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: Andreas Schwab <schwab at linux-m68k dot org>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 28 Apr 2015 21:26:35 +0200
- 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>
"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."