diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-05-24 12:48:46 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-05-24 12:48:46 +0000 |
commit | 401e4e570e1e323484018b9ef8d3a70fe5d12bbe (patch) | |
tree | 5780d87767689ae37ce57dcc8ca66b877cf405cd /llvm/test/DebugInfo/Inputs | |
parent | 11de370ccae5dc9a5b99042eebef4e8040d69749 (diff) | |
download | bcm5719-llvm-401e4e570e1e323484018b9ef8d3a70fe5d12bbe.tar.gz bcm5719-llvm-401e4e570e1e323484018b9ef8d3a70fe5d12bbe.zip |
Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.)
Fix was:
1) Had to regenerate dwarfdump-test-zlib.elf-x86-64, dwarfdump-test-zlib-gnu.elf-x86-64
(because llvm-symbolizer-zlib.test uses that inputs for its purposes and failed).
2) Updated llvm-symbolizer-zlib.test (updated used call function address to match new files +
added one more check for newly created dwarfdump-test-zlib-gnu.elf-x86-64 binary input).
3) Updated comment in dwarfdump-test-zlib.cc.
Original commit message:
[llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.
Before this llvm-dwarfdump only recognized zlib-gnu compression style of headers,
this patch adds support for zlib style.
It looks reasonable to support both styles for dumping,
even if we are not going to suport generating of deprecated gnu one.
Differential revision: http://reviews.llvm.org/D20470
llvm-svn: 270557
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
-rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.cc | 9 | ||||
-rwxr-xr-x | llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.elf-x86-64 | bin | 9589 -> 10448 bytes | |||
-rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 | bin | 0 -> 10384 bytes |
3 files changed, 6 insertions, 3 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.cc b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.cc index 260c3c435c1..966a465f904 100644 --- a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.cc +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.cc @@ -16,9 +16,12 @@ int main() { return f(2, 3); } -// Built with Clang 3.2 and ld.gold linker: +// Built with Clang 3.9 and GNU gold (GNU Binutils for Ubuntu 2.26) 1.11: +// Note: llvm-symbolizer-zlib.test relies on the path and filename used ! // $ mkdir -p /tmp/dbginfo // $ cp dwarfdump-test-zlib.cc /tmp/dbginfo // $ cd /tmp/dbginfo -// $ clang++ -g dwarfdump-test-zlib.cc -Wl,--compress-debug-sections=zlib \ -// -o <output> +// $ clang++ -g dwarfdump-test-zlib.cc -Wl,--compress-debug-sections=zlib -o dwarfdump-test-zlib.elf-x86-64 +// $ clang++ -g dwarfdump-test-zlib.cc -Wl,--compress-debug-sections=zlib-gnu -o dwarfdump-test-zlibgnu.elf-x86-64 +// llvm-readobj -sections can be used to see that outputs really contain the compressed sections, also output in both +// cases is slightly smaller, that is because of compression.
\ No newline at end of file diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.elf-x86-64 b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.elf-x86-64 Binary files differindex 16b3153939f..36e630ccae0 100755 --- a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.elf-x86-64 +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlib.elf-x86-64 diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 Binary files differnew file mode 100644 index 00000000000..0ad7a3d8511 --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 |