PPC relocs in shared libraries
Richard Henderson
rth@redhat.com
Fri Sep 27 15:29:00 GMT 2002
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~
More information about the Binutils
mailing list