[lld] 649cc16 - [ELF][test] Add testing for dynamic TLS relocations in .debug_info
Andrew Ng via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 12 02:55:49 PDT 2021
Author: Andrew Ng
Date: 2021-10-12T10:54:52+01:00
New Revision: 649cc160e38b55ca931860416f549b2a355ad814
URL: https://github.com/llvm/llvm-project/commit/649cc160e38b55ca931860416f549b2a355ad814
DIFF: https://github.com/llvm/llvm-project/commit/649cc160e38b55ca931860416f549b2a355ad814.diff
LOG: [ELF][test] Add testing for dynamic TLS relocations in .debug_info
Differential Revision: https://reviews.llvm.org/D111436
Added:
Modified:
lld/test/ELF/x86-64-tls-ld-local.s
Removed:
################################################################################
diff --git a/lld/test/ELF/x86-64-tls-ld-local.s b/lld/test/ELF/x86-64-tls-ld-local.s
index 4978b83f12fd..53b3120ea49c 100644
--- a/lld/test/ELF/x86-64-tls-ld-local.s
+++ b/lld/test/ELF/x86-64-tls-ld-local.s
@@ -1,7 +1,7 @@
// 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 {
@@ -13,6 +13,9 @@
// CHECK-NEXT: }
// CHECK-NEXT: ]
+// CHECK: Hex dump of section '.debug_info':
+// CHECK-NEXT: 0x00000000 04000000 00000000 00000000 00000000
+
data16
leaq bar at TLSGD(%rip), %rdi
data16
@@ -27,3 +30,9 @@
.section .tdata,"awT", at progbits
bar:
.long 42
+foo:
+ .long 43
+
+ .section .debug_info,"", at progbits
+ .quad foo at DTPOFF
+ .quad bar at DTPOFF
More information about the llvm-commits
mailing list