[lld] r321021 - Add another test.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 18 12:29:00 PST 2017
Author: rafael
Date: Mon Dec 18 12:29:00 2017
New Revision: 321021
URL: http://llvm.org/viewvc/llvm-project?rev=321021&view=rev
Log:
Add another test.
This also changed in r315658. The new result is the correct one.
Added:
lld/trunk/test/ELF/i386-tls-initial-exec-local.s
Added: lld/trunk/test/ELF/i386-tls-initial-exec-local.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/i386-tls-initial-exec-local.s?rev=321021&view=auto
==============================================================================
--- lld/trunk/test/ELF/i386-tls-initial-exec-local.s (added)
+++ lld/trunk/test/ELF/i386-tls-initial-exec-local.s Mon Dec 18 12:29:00 2017
@@ -0,0 +1,36 @@
+# REQUIRES: x86
+# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=i386-pc-linux
+# RUN: ld.lld %t.o -o %t.so -shared
+# RUN: llvm-readobj --relocations --sections --section-data %t.so | FileCheck %s
+
+# Check initial exec access to a local symbol.
+
+# CHECK: Name: .got (
+# CHECK-NEXT: Type:
+# CHECK-NEXT: Flags [
+# CHECK-NEXT: SHF_ALLOC
+# CHECK-NEXT: SHF_WRITE
+# CHECK-NEXT: ]
+# CHECK-NEXT: Address:
+# CHECK-NEXT: Offset:
+# CHECK-NEXT: Size: 8
+# CHECK-NEXT: Link:
+# CHECK-NEXT: Info:
+# CHECK-NEXT: AddressAlignment:
+# CHECK-NEXT: EntrySize:
+# CHECK-NEXT: SectionData (
+# CHECK-NEXT: 0000: 00000000 04000000
+# CHECK-NEXT: )
+
+# CHECK: R_386_TLS_TPOFF - 0x0
+# CHECK-NEXT: R_386_TLS_TPOFF - 0x0
+
+ movl bar1 at GOTNTPOFF(%eax), %ecx
+ movl bar2 at GOTNTPOFF(%eax), %eax
+
+ .section .tdata,"awT", at progbits
+bar1:
+ .long 42
+
+bar2:
+ .long 42
More information about the llvm-commits
mailing list