[ARM] Test R_ARM_TLS_LE32 for dynamic executable
llvm-svn: 235180
This commit is contained in:
parent
0e82028afe
commit
3b5f7e9965
|
@ -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
|
||||
|
||||
# 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
|
||||
# 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
|
||||
|
||||
# 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:
|
||||
|
|
Loading…
Reference in New Issue