[lld] r235180 - [ARM] Test R_ARM_TLS_LE32 for dynamic executable
Denis Protivensky
dprotivensky at accesssoftek.com
Fri Apr 17 04:24:11 PDT 2015
Author: denis-protivensky
Date: Fri Apr 17 06:24:11 2015
New Revision: 235180
URL: http://llvm.org/viewvc/llvm-project?rev=235180&view=rev
Log:
[ARM] Test R_ARM_TLS_LE32 for dynamic executable
Modified:
lld/trunk/test/elf/ARM/rel-tls-le32.test
Modified: lld/trunk/test/elf/ARM/rel-tls-le32.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/ARM/rel-tls-le32.test?rev=235180&r1=235179&r2=235180&view=diff
==============================================================================
--- lld/trunk/test/elf/ARM/rel-tls-le32.test (original)
+++ lld/trunk/test/elf/ARM/rel-tls-le32.test Fri Apr 17 06:24:11 2015
@@ -1,15 +1,28 @@
# Check handling of R_ARM_TLS_LE32 relocation.
+
# RUN: yaml2obj -format=elf %s > %t-o.o
# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi -Bstatic \
# RUN: --noinhibit-exec %t-o.o -o %t
-# RUN: llvm-objdump -s -t %t | FileCheck %s
+# RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=STATIC %s
+
+# STATIC: Contents of section .text:
+# STATIC: 4000b4 {{[0-9a-f]+}} 08000000
+# tp_off = 0x000008 ^^
+# STATIC: SYMBOL TABLE:
+# STATIC: 00400094 g F .text {{[0-9a-f]+}} main
+# STATIC: 00000000 g .tdata 00000004 i
+
+# RUN: yaml2obj -format=elf %s > %t-o.o
+# RUN: lld -flavor gnu -target arm -m armelf_linux_eabi \
+# RUN: --noinhibit-exec %t-o.o -o %t
+# RUN: llvm-objdump -s -t %t | FileCheck -check-prefix=EXEC-DYN %s
-# CHECK: Contents of section .text:
-# CHECK: 4000b4 {{[0-9a-f]+}} 08000000
-# tp_off = 0x000008 ^^
-# CHECK: SYMBOL TABLE:
-# CHECK: 00400094 g F .text {{[0-9a-f]+}} main
-# CHECK: 00000000 g .tdata 00000004 i
+# EXEC-DYN: Contents of section .text:
+# EXEC-DYN: 400154 {{[0-9a-f]+}} 08000000
+# tp_off = 0x000008 ^^
+# EXEC-DYN: SYMBOL TABLE:
+# EXEC-DYN: 00400134 g F .text {{[0-9a-f]+}} main
+# EXEC-DYN: 00000000 g .tdata 00000004 i
---
FileHeader:
More information about the llvm-commits
mailing list