Issues with gcc Assembler on Interix when generating PIC code

Alan Modra amodra@bigpond.net.au
Mon Apr 23 11:59:00 GMT 2007


On Mon, Apr 23, 2007 at 04:32:23PM +0800, Mayank Kumar wrote:
> At last somebody replied.

A pity I answered a different question though.  :-(

> The relocation type is BFD_RELOC_386_GOTOFF and not BFD_RELOC_386_GOT32

OK..

1) tc_fix_adjustable ensures that the GOTOFF fixup keeps its symbol
   rather than being adjust to be against a section symbol.
2) MD_APPLY_SYM_VALUE stops the symbol value being added in to the
   value passed the md_apply_fix, so md_apply_fix always puts zero
   in the section contents.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list