Reloc BUG in as
Geoff Keating
geoffk@geoffk.org
Fri Mar 2 08:29:00 GMT 2001
> 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>
More information about the Binutils
mailing list