search for: reloc_data

Displaying 3 results from an estimated 3 matches for "reloc_data".

2017 Sep 14
4
Do I need to modify the AddrLoc of LLD for ARC target?
...type: R_ARC_S25W_PCREL insn: 2058 > > DEBUG: lld: R_ARC_S25W_PCREL TargetVA: 4 A: 0 P: 8 <-- different P? > DEBUG: lld: R_ARC_S25W_PCREL: Insn: 2050 Rel: 1 > DEBUG: lld: R_ARC_S25W_PCREL: Insn: 2054 <-- different relocation value > > How arc-ld calculates P? > > P = ((reloc_data.input_section->output_section ? > reloc_data.input_section->output_section->vma : 0) + > reloc_data.input_section->output_offset + (reloc_data.reloc_offset - > (reloc_data.bitsize >= 32 ? 4 : 0))) & ~0x3; > > for example, R_ARC_S25W_PCREL's bitsize < 32, P =...
2017 Sep 18
1
Do I need to modify the AddrLoc of LLD for ARC target?
...<-- different P? >>>>> DEBUG: lld: R_ARC_S25W_PCREL: Insn: 2050 Rel: 1 >>>>> DEBUG: lld: R_ARC_S25W_PCREL: Insn: 2054 <-- different relocation value >>>>> >>>>> How arc-ld calculates P? >>>>> >>>>> P = ((reloc_data.input_section->output_section ? >>>>> reloc_data.input_section->output_section->vma : 0) + >>>>> reloc_data.input_section->output_offset + (reloc_data.reloc_offset - >>>>> (reloc_data.bitsize >= 32 ? 4 : 0))) & ~0x3; >>>>&g...
2017 Sep 19
1
Do I need to modify the AddrLoc of LLD for ARC target?
...> symbol_section->vma = 0x6 > PCL = 0x4 > P = 0x4 > G = 0 > SDA_OFFSET = 0x2188 > SDA_SET = 1 > GOT_OFFSET = 0 > relocation = 0x000002 > before = 0x000802 > data = 00000002 (2) (2) > after = 0x0000080a > > then I need to investigate how LD calculate > reloc_data.input_section->output_section->vma, it might different with LLD > even the same Alignment > https://github.com/llvm-mirror/lld/blob/master/ELF/LinkerScript.cpp#L485 > > > >> >> I'm not entirely sure where the Arm example has come from, but it does >> show...