diff options
| author | Austin Clements <austin@google.com> | 2015-12-02 12:20:29 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-12-03 20:53:11 +0000 |
| commit | 76483877052eaa9b2242deee2239e82d3953fd16 (patch) | |
| tree | 6a4aefba2782a6ead3b9d42280feddafcc79a301 /src/debug/elf/testdata | |
| parent | e1544d3bb68d56ebf43cc8828e3dce18fd5ef442 (diff) | |
| download | go-76483877052eaa9b2242deee2239e82d3953fd16.tar.xz | |
debug/elf: transparently decompress compressed sections
This adds support for compressed ELF sections. This compression is
treated as a framing issue and hence the package APIs all
transparently decompress compressed sections. This requires some
subtlety for (*Section).Open, which returns an io.ReadSeeker: since
the decompressed data comes from an io.Reader, this commit introduces
a Reader-to-ReadSeeker adapter that is efficient for common uses of
Seek and does what it can otherwise.
Fixes #11773.
Change-Id: Ic0cb7255a85cadf4c1d15fb563d5a2e89dbd3c36
Reviewed-on: https://go-review.googlesource.com/17341
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
Diffstat (limited to 'src/debug/elf/testdata')
| -rw-r--r-- | src/debug/elf/testdata/compressed-32.obj | bin | 0 -> 2208 bytes |
| -rw-r--r-- | src/debug/elf/testdata/compressed-64.obj | bin | 0 -> 3280 bytes |
2 files changed, 0 insertions, 0 deletions
diff --git a/src/debug/elf/testdata/compressed-32.obj b/src/debug/elf/testdata/compressed-32.obj Binary files differnew file mode 100644 index 0000000000..2bfdb44240 --- /dev/null +++ b/src/debug/elf/testdata/compressed-32.obj diff --git a/src/debug/elf/testdata/compressed-64.obj b/src/debug/elf/testdata/compressed-64.obj Binary files differnew file mode 100644 index 0000000000..ffae56a931 --- /dev/null +++ b/src/debug/elf/testdata/compressed-64.obj |
