blob: e60bbbfe358b747fa4d9173fb198e2c37ad6894f [file] [log] [blame]
Alexey Samsonov005159e2013-04-23 10:17:34 +00001REQUIRES: zlib
2
Adrian Prantl3776c522017-09-11 23:05:20 +00003RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlib.elf-x86-64 | FileCheck %s
4RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlib.o.elf-x86-64 | FileCheck %s
5RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 | FileCheck %s
Alexey Samsonov005159e2013-04-23 10:17:34 +00006
Alexey Samsonov8ad418b2014-05-19 18:45:32 +00007CHECK: .debug_abbrev contents
George Rimar5ad80b22016-05-24 12:48:46 +00008
9// Dump content of a little section to check that both zlib and zlib gnu styles do
10// the decompression correctly and result is the same. This and above also checks
11// that sections names are properly shown in zlib-gnu style (without additional 'z' prefix).
Alexey Samsonov8ad418b2014-05-19 18:45:32 +000012CHECK: .debug_info contents
George Rimar5ad80b22016-05-24 12:48:46 +000013CHECK: 0x00000000: Compile Unit: length = 0x00000144 version = 0x0004 abbr_offset = 0x0000 addr_size = 0x08 (next unit at 0x00000148)
David Blaikief7991202017-06-10 19:32:50 +000014
15// Also check that relocations in the .zdebug sections are handled correctly:
16CHECK: DW_AT_ranges {{.*}} (0x00000000{{$}}
17CHECK-NEXT: [0x