Displaying 3 results from an estimated 3 matches for "input_section".
2017 Sep 14
4
Do I need to modify the AddrLoc of LLD for ARC target?
...C_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 = (6 + 0 + 0 -...
2017 Sep 19
1
Do I need to modify the AddrLoc of LLD for ARC target?
...ero
>
>
> Reloc type=R_ARC_S25W_PCREL, should_relocate = true
> offset = 0x0, addend = 0x0
> Symbol:
> value = 0x00000000
> Symbol Section:
> section name = .text, output_offset 0x00000006, output_section->vma =
> 0x00000006
> file: lib_a-memset-bs.o
> Input_section:
> section name = .text, output_offset 0x00000000, output_section->vma =
> 0x00000006
> changed_address = 0x00000006
> file: basic-arc.o
> RELOC_TYPE = ARC_S25W_PCREL
> FORMULA = ( ME ( ( ( ( S + A ) - P ) >> 2 ) ) )
> S = 0xc
> A = 0
> L = c
> symbol_se...
2017 Sep 18
1
Do I need to modify the AddrLoc of LLD for ARC target?
...erent 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;
>>>>>
>>>...