dwarf2 and linker relaxation problem

Ian Lance Taylor ian@airs.com
Fri Sep 2 17:23:00 GMT 2005


Dmitry Diky <ddiky@alarity.com> writes:

> > The part that handles the R_SH_SWITCH* relocs.
> 
> I checked this twice and it seems that this approach does not work for me.
> As I see from .debug_info and .debug_line sections contents they have no 
> symbols referenced by .text (for example) section content.
> So, the question is - how to hook on 'something' in dw2 sections to adjust 
> relaxed references?

The SH assembler explicitly emits relocs which are only required for
relaxation.  For example, for
    .word foo - bar
it will emit a reloc, even when the value can be resolved in the
assembler.  This exposes the information to the relaxation code.

Ian



More information about the Binutils mailing list