This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: dwarf2 and linker relaxation problem
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