[Dwarf-Discuss] Section offset values

Jakub Křoustek ikroustek@fit.vutbr.cz
Wed Oct 27 13:21:43 GMT 2010


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 for translation of ".long label" directives.

Jakub




More information about the Dwarf-discuss mailing list