From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: Richard Henderson Cc: David B Anderson , gdb@sourceware.cygnus.com, binutils@sourceware.cygnus.com Subject: Re: Why does mips define elf_backend_sign_extend_vma to true? Date: Tue, 07 Aug 2001 23:21:00 -0000 Message-id: <20010807232102.A19636@lucon.org> References: <200108080326.UAA19167@quasar.engr.sgi.com> <20010807220451.A18294@lucon.org> <20010807224622.A25295@redhat.com> X-SW-Source: 2001-08/msg00061.html On Tue, Aug 07, 2001 at 10:46:22PM -0700, Richard Henderson wrote: > On Tue, Aug 07, 2001 at 10:04:51PM -0700, H . J . Lu wrote: > > I think the better fix is to check the EF_MIPS field to only > > do sign extension for MIPS III/IV. But we don't support such encoding. > > There are too many odd combinations of mips chips for > something so simplistic to work. > > 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. In any case, I won't bother with any patches. But I will fix it in my Linux binutils. H.J.