// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared
-// RUN: llvm-readobj -r -S %t.so | FileCheck %s
+// RUN: llvm-readobj -r -S --hex-dump=.debug_info %t.so | FileCheck %s
// CHECK: Relocations [
// CHECK-NEXT: Section ({{.*}}) .rela.dyn {
// CHECK-NEXT: }
// CHECK-NEXT: ]
+// CHECK: Hex dump of section '.debug_info':
+// CHECK-NEXT: 0x00000000 04000000 00000000 00000000 00000000
+
data16
leaq bar@TLSGD(%rip), %rdi
data16
.section .tdata,"awT",@progbits
bar:
.long 42
+foo:
+ .long 43
+
+ .section .debug_info,"",@progbits
+ .quad foo@DTPOFF
+ .quad bar@DTPOFF