This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Why does mips define elf_backend_sign_extend_vma to true?
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: Why does mips define elf_backend_sign_extend_vma to true?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 07 Aug 2001 21:42:24 -0400
- Cc: binutils at sourceware dot cygnus dot com, rth at redhat dot com, ac131313 at redhat dot com
- References: <20010807182459.A15252@lucon.org> <20010807183933.A15425@lucon.org>
> On Tue, Aug 07, 2001 at 06:24:59PM -0700, H . J . Lu wrote:
>
>> Only elf32-mips.c has
>>
>> #define elf_backend_sign_extend_vma true
>>
>> and we get
>>
>> # nm vmlinux
>> ffffffff802e01f0 D C_A_D
>> ffffffff802df344 D EISA_bus
>> ....
>>
>> Does anyone know why mips does this?
>>
>
>
> It seems that it was done on purpose:
>
> http://sources.redhat.com/ml/binutils/1999-11/msg00080.html
>
> I don't believe it is correct for the normal 32bit MIPS SVR4 ABI. I'd like
> to turn it off. If you want to do sign extension, you should create a new
> ABI, not break the existing ABI.
Several ABI's have implied sign extension of addresses. MIPS is one.
Andrew