relaxation question
Alan Modra
amodra@bigpond.net.au
Wed Aug 11 13:30:00 GMT 2004
More information about the Binutils mailing list
Wed Aug 11 13:30:00 GMT 2004
- Previous message (by thread): relaxation question
- Next message (by thread): PATCH: Reserve an i386 relocation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): relaxation question
- Next message (by thread): PATCH: Reserve an i386 relocation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list