This is the mail archive of the binutils@sources.redhat.com 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]

Re: Reloc BUG in as


> 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>


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