This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB 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: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Wed, 8 Aug 2001 10:11:29 +0200 (MET DST)
- cc: Richard Henderson <rth at redhat dot com>, David B Anderson <davea at quasar dot engr dot sgi dot com>, gdb at sourceware dot cygnus dot com, binutils at sourceware dot cygnus dot com
- Organization: Technical University of Gdansk
On Tue, 7 Aug 2001, H . J . Lu wrote:
> > Besides, things aren't broken. Use a 64-bit BFD and
> > you _should_ get sign-extension for MIPS.
>
> That is wrong for MIPS I/II even if BFD is 64bit for whatever reason.
Sign-extension is fine. I think what you really want is to truncate
addresses in the output of certain programs such as nm and objdump to 32
bits if the output BFD is elf32-*mips. It's on my to-do list for some
time, but don't hold your breath (i.e. feel free to do it yourself ;-) ).
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +