This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: dwarf2 and linker relaxation problem
Richard Henderson <rth@redhat.com> writes:
> On Fri, Sep 02, 2005 at 01:09:27PM -0400, Hans-Peter Nilsson wrote:
> > Seems like a clue that the assembler didn't emit relocations
> > where it must, for linker relaxation.
>
> There are no relocations possible here. The linker will have to
> completely parse and re-emit the .debug_line section, the
> .debug_frame section, and the .eh_frame section.
Well, no, relocations are possible, but you do generally need to
define new relocation types, and you need to force the assembler to
generate them.
SH ELF has nine relocation types which exist only for relaxation
purposes (R_SH_SWITCH8 through R_SH_LABEL).
Ian