This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PPC relocs in shared libraries


On Fri, Sep 27, 2002 at 09:07:55AM -0400, Jakub Jelinek wrote:
> I still don't understand why GDB needs to care about reloc sections in
> ET_DYN/ET_EXEC. Most arches don't generate them and it has to understand
> the debug format anyway (and thus knows where to add l_addr and where not).

Most arches _should_ generate non-loaded .rel[a].debug_info sections.
The debug info only has the source-level symbol, not the asm-level
symbol.  Which, if one is using the gcc __asm__ extension, need not
have any relation.

The relocation is the only way to associate the real address with the
debug info in the case of dynamic linker overrides.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]