diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-28 14:48:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-28 14:48:59 +0000 |
commit | e8f08be11c1d20664a9ce44258b6c080839a948f (patch) | |
tree | a72be4b4abbfd0764d924c6078823ac115d553a8 /llvm/test | |
parent | b1f9380cac66fa478f8463788c98484cab77149b (diff) | |
download | bcm5719-llvm-e8f08be11c1d20664a9ce44258b6c080839a948f.tar.gz bcm5719-llvm-e8f08be11c1d20664a9ce44258b6c080839a948f.zip |
Implement DTPOFF.
llvm-svn: 117546
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/ELF/relocation-386.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/relocation-386.s b/llvm/test/MC/ELF/relocation-386.s index 9fb0befb03f..c3903236187 100644 --- a/llvm/test/MC/ELF/relocation-386.s +++ b/llvm/test/MC/ELF/relocation-386.s @@ -91,6 +91,14 @@ // CHECK-NEXT: ('r_sym', 0x0000000b) // CHECK-NEXT: ('r_type', 0x00000013) // CHECK-NEXT: ), + +// Relocation 11 (foo@DTPOFF) is of type R_386_TLS_LDO_32 +// CHECK-NEXT: # Relocation 0x0000000b +// CHECK-NEXT: (('r_offset', 0x00000043) +// CHECK-NEXT: ('r_sym', 0x0000000b) +// CHECK-NEXT: ('r_type', 0x00000020) +// CHECK-NEXT: ), + .text bar: leal .Lfoo@GOTOFF(%ebx), %eax @@ -113,6 +121,7 @@ bar2: addl foo@NTPOFF(%eax), %eax addl foo@GOTNTPOFF(%ebx), %ecx leal foo@TLSLDM(%ebx), %eax + leal foo@DTPOFF(%eax), %edx .section .rodata.str1.16,"aMS",@progbits,1 .Lfoo: |