mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Implement R_X86_64_DTPOFF32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117548 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4d1721eff
commit
aa8f1f0135
@ -728,6 +728,9 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
|
||||
case MCSymbolRefExpr::VK_TPOFF:
|
||||
Type = ELF::R_X86_64_TPOFF32;
|
||||
break;
|
||||
case MCSymbolRefExpr::VK_DTPOFF:
|
||||
Type = ELF::R_X86_64_DTPOFF32;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case FK_Data_4:
|
||||
|
@ -13,6 +13,7 @@ bar:
|
||||
leaq foo@TLSGD(%rip), %rax # R_X86_64_TLSGD
|
||||
leaq foo@TPOFF(%rax), %rax # R_X86_64_TPOFF32
|
||||
leaq foo@TLSLD(%rip), %rdi # R_X86_64_TLSLD
|
||||
leaq foo@DTPOFF(%rax), %rcx # R_X86_64_DTPOFF32
|
||||
|
||||
// CHECK: # Section 0x00000001
|
||||
// CHECK: (('sh_name', 0x00000001) # '.text'
|
||||
@ -83,3 +84,9 @@ bar:
|
||||
// CHECK-NEXT: ('r_sym', 0x00000006)
|
||||
// CHECK-NEXT: ('r_type', 0x00000014)
|
||||
// CHECK-NEXT: ('r_addend', 0xfffffffc)
|
||||
|
||||
// CHECK: # Relocation 0x0000000a
|
||||
// CHECK-NEXT: (('r_offset', 0x00000049)
|
||||
// CHECK-NEXT: ('r_sym', 0x00000006)
|
||||
// CHECK-NEXT: ('r_type', 0x00000015)
|
||||
// CHECK-NEXT: ('r_addend', 0x00000000)
|
||||
|
Loading…
Reference in New Issue
Block a user