This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Reloc BUG in as
- To: "Mark E." <snowball3 at bigfoot dot com>
- Subject: Re: Reloc BUG in as
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 05 Mar 2001 14:39:31 -0800
- Cc: binutils at sources dot redhat dot com
- References: <3AA3C7D1.9273.499B0F@localhost>
"Mark E." <snowball3@bigfoot.com> writes:
> > a.out: file format elf32-i386
> >
> > RELOCATION RECORDS FOR [.text]:
> > OFFSET TYPE VALUE
> > 00000001 R_386_PC32 *ABS*
>
> Hmm, I get a different (correct?) result with coff-i386:
>
> a:
> b:
> call a-b
>
> test.o: file format coff-go32
>
> RELOCATION RECORDS FOR [.text]:
> OFFSET TYPE VALUE
> 00000001 DISP32 fake
Note that you are comparing with the correct result. The incorrect
result is the one without the reloc.
Your coff-i386 result might well be correct, depending upon how the
linker handles the reloc. After the final link you should see a call
to the absolute address 0. If you see anything else, then something
went wrong somewhere.
Ian