[Dwarf-Discuss] Section offset values

Jakub Křoustek ikroustek at fit.vutbr.cz
Mon Nov 8 03:30:19 PST 2010


On 27.10.2010 15:21, Jakub Kroustek wrote:
> On 25.10.2010 19:12, David Anderson <davea42 at earthlink.net> wrote:
>> Check the .rel or .rela section!
>>
>> When linking is later done the relocation
>> (which the compiler also creates) will have the right effect.
> 
> Thanks for hint. In .rela.debug_pubnames section, I see:
> 
> Offset       Info         Type        Sym. Value     Sym. Name + Addend
> 000000000006 00060000000a R_X86_64_32 0000000000000000 .debug_info + 0
> 
> That is clear for me, the assembler used a R_X86_64_32 relocation type.
> But .rel / .rela sections are generated by assembler not by C compiler
> (gcc -g3 -S test.c), so I still don't know why the assembler used
> relocation (and this type of relocation) for directive ".long
> .Ldebug_info0" in section .debug_pubnames. This is not the default
> behavior of ".long label" directive translation.
> 
> Jakub

Sorry for reopening, but no one can help with this topic?
Jakub



More information about the Dwarf-Discuss mailing list