This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Issues with gcc Assembler on Interix when generating PIC code


Hi Alan
Thanks for the information. At last somebody replied.
For my case in hand,

The assembly file:-
        .section        .rdata,"r"
        .balign 4
L8:
        .long   L2@GOTOFF
        .long   L3@GOTOFF
        .long   L4@GOTOFF
        .long   L5@GOTOFF
        .long   L6@GOTOFF
        .long   L7@GOTOFF

The relocation type is BFD_RELOC_386_GOTOFF and not BFD_RELOC_386_GOT32 and I don't see any case for this relocation type for elf as well in md_apply_fix. How is this handled ?


Thanks
Mayank

-----Original Message-----
From: binutils-owner@sourceware.org [mailto:binutils-owner@sourceware.org] On Behalf Of Alan Modra
Sent: Monday, April 23, 2007 5:25 AM
To: Mayank Kumar
Cc: binutils@sourceware.org
Subject: Re: Issues with gcc Assembler on Interix when generating PIC code

On Wed, Apr 11, 2007 at 03:44:49AM +0800, Mayank Kumar wrote:
> Now I could not figure out how this case is handled in elf binaries

See md_apply_fix.

      case BFD_RELOC_386_GOT32:
      case BFD_RELOC_X86_64_GOT32:
        value = 0; /* Fully resolved at runtime.  No addend.  */
        break;

--
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]