Displaying 3 results from an estimated 3 matches for "targetva".
2017 Sep 14
4
Do I need to modify the AddrLoc of LLD for ARC target?
...> DEBUG: arc-ld: R_ARC_S25W_PCREL relocation: 1 S: 4 A: 0 P: 0 = (vma: 0 +
> output_offset: 0 + reloc_offset: 0 - 0) & ~0x3
> DEBUG: arc-ld: type: R_ARC_S25W_PCREL insn: 2054
>
> $ ld.lld -o basic-arc-lld basic-arc.o $ARC_LINKER_LIB -Ttext=0
>
> DEBUG: lld: R_ARC_S25W_PCREL TargetVA: 4 A: 0 P: 0 <-- same P as arc-ld
> DEBUG: lld: R_ARC_S25W_PCREL: Insn: 2050 Rel: 1
> DEBUG: lld: R_ARC_S25W_PCREL: Insn: 2054 <-- same relocation value as arc-ld
>
> But with several different high address *not* 0x0, such as 0x6:
>
> DEBUG: arc-ld: R_ARC_S25W_PCREL relocati...
2017 Sep 18
1
Do I need to modify the AddrLoc of LLD for ARC target?
...000000 target
> 00000008 0000030a R_ARM_THM_CALL 00000000 target
> 0000000c 0000030a R_ARM_THM_CALL 00000000 target
> 00000010 00000332 R_ARM_THM_MOVT_PR 00000000 target
> 00000014 00000331 R_ARM_THM_MOVW_PR 00000000 target
>
>
> DEBUG: lld: R_ARM_THM_JUMP19 TargetVA: 0 A: -4 P: 69640 Align: 4 VMA: 69640
> Output Offset: 0 Reloc Offset: 0
> DEBUG: lld: R_ARM_THM_JUMP24 TargetVA: 0 A: -4 P: 69644 Align: 4 VMA: 69640
> Output Offset: 0 Reloc Offset: 4
> DEBUG: lld: R_ARM_THM_CALL TargetVA: 1 A: -4 P: 69648 Align: 4 VMA: 69640
> Output Offset: 0 Rel...
2017 Sep 19
1
Do I need to modify the AddrLoc of LLD for ARC target?
...e == R_ARC_GOTPC)
+ M = 4; // bitsize >= 32 ? 4 : 0
+ AddrLoc = (getOutputSection()->Addr /* output_section->vma */ +
+ cast<InputSection>(this)->OutSecOff /* output_offset */ +
+ Offset /* reloc_offset */ - M) & ~0x3;
+ }
uint64_t TargetVA = SignExtend64(
getRelocTargetVA(Type, Rel.Addend, AddrLoc, *Rel.Sym, Expr), Bits);
Looking at your calculation for AddrLoc, it seems like your
calculation doesn't match the original as Offset is (in trunk lld,
your diff is a against an old version, but I think the line hasn't
cha...