relaxation question
Alan Modra
amodra@bigpond.net.au
Wed Aug 11 13:30:00 GMT 2004
On Wed, Aug 11, 2004 at 05:12:15PM +0400, Dmitry Dikiy wrote:
> Thanks Alan,
>
> > Yes, in that case the assembler can't do relaxation, and you need to
> > implement relaxation in the linker. bfd_relax_section is called for
> > each input section in turn, not for each relocation, then if any of the
> > calls resulted in "again" being set, the whole process is repeated.
>
> Will be other symbols (for eample located between polymorph and target
> label) updated automatically or I have to re-fix them?
You need to update both local and global symbols defined in the section
you are relaxing. You also need to update relocation r_offset values.
Take a look at one of the elf_relax_section functions in various bfd/
files.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list