This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Reloc BUG in as
- To: mikulas at artax dot karlin dot mff dot cuni dot cz
- Subject: Re: Reloc BUG in as
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Fri, 2 Mar 2001 08:29:05 -0800
- CC: binutils at sources dot redhat dot com
- References: <Pine.LNX.3.96.1010302030207.17932B-100000@artax.karlin.mff.cuni.cz>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> Date: Fri, 2 Mar 2001 03:06:04 +0100 (CET)
> From: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
>
> Hi.
>
> as sometimes does not create reloc entry. It is a bug. Tested on binutils
> 2.10.91.
Actually, it's the reverse, isn't it? GAS should never create the
reloc for 'call a-b', since it can compute it correctly while assembling.
> $ as
> a:
> b:
> call a-b
> $ objdump --reloc
>
> a.out: file format elf32-i386
>
> RELOCATION RECORDS FOR [.text]:
> OFFSET TYPE VALUE
> 00000001 R_386_PC32 *ABS*
>
>
> $ as
> call a-b
> a:
> b:
> $ objdump --reloc
>
> a.out: file format elf32-i386
>
> $
>
>
--
- Geoffrey Keating <geoffk@geoffk.org>