forked from OSchip/llvm-project
Add support for R_X86_64_DTPOFF64.
It is used by clang to produce debug info for tls variables. llvm-svn: 260384
This commit is contained in:
parent
fc3bf1f526
commit
96449907a5
|
@ -872,6 +872,9 @@ void X86_64TargetInfo::relocateOne(uint8_t *Loc, uint8_t *BufEnd, uint32_t Type,
|
||||||
case R_X86_64_DTPOFF32:
|
case R_X86_64_DTPOFF32:
|
||||||
write32le(Loc, SA);
|
write32le(Loc, SA);
|
||||||
break;
|
break;
|
||||||
|
case R_X86_64_DTPOFF64:
|
||||||
|
write64le(Loc, SA);
|
||||||
|
break;
|
||||||
case R_X86_64_GOTPCREL:
|
case R_X86_64_GOTPCREL:
|
||||||
case R_X86_64_PC32:
|
case R_X86_64_PC32:
|
||||||
case R_X86_64_PLT32:
|
case R_X86_64_PLT32:
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
// Initial Exec Model Code Sequence, II
|
// Initial Exec Model Code Sequence, II
|
||||||
movq c@gottpoff(%rip),%rax
|
movq c@gottpoff(%rip),%rax
|
||||||
movq %fs:(%rax),%rax
|
movq %fs:(%rax),%rax
|
||||||
|
movabs $a@dtpoff, %rax
|
||||||
|
movabs $b@dtpoff, %rax
|
||||||
|
movabs $c@dtpoff, %rax
|
||||||
|
|
||||||
.global a
|
.global a
|
||||||
.hidden a
|
.hidden a
|
||||||
|
@ -79,3 +82,6 @@ c:
|
||||||
// DIS-NEXT: 103b: {{.+}} leaq 8(%rax), %rcx
|
// DIS-NEXT: 103b: {{.+}} leaq 8(%rax), %rcx
|
||||||
// DIS-NEXT: 1042: {{.+}} movq 4263(%rip), %rax
|
// DIS-NEXT: 1042: {{.+}} movq 4263(%rip), %rax
|
||||||
// DIS-NEXT: 1049: {{.+}} movq %fs:(%rax), %rax
|
// DIS-NEXT: 1049: {{.+}} movq %fs:(%rax), %rax
|
||||||
|
// DIS-NEXT: 104d: {{.+}} movabsq $0, %rax
|
||||||
|
// DIS-NEXT: 1057: {{.+}} movabsq $4, %rax
|
||||||
|
// DIS-NEXT: 1061: {{.+}} movabsq $8, %rax
|
||||||
|
|
Loading…
Reference in New Issue