This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MIPS simulator is broken
- From: Pedro Alves <palves at redhat dot com>
- To: Steve Ellcey <sellcey at imgtec dot com>, gdb-patches at sourceware dot org
- Date: Tue, 12 Jan 2016 10:25:25 +0000
- Subject: Re: MIPS simulator is broken
- Authentication-results: sourceware.org; auth=none
- References: <5f31ca78-325c-4c18-9abf-16de50bac964 at BAMAIL02 dot ba dot imgtec dot org> <20160112010025 dot GE4894 at vapier dot lan>
On 01/12/2016 01:00 AM, Mike Frysinger wrote:
> and indeed, the mips bfds (for whatever reason) do:
> elf32-mips.c:#define elf_backend_sign_extend_vma TRUE
> elf64-mips.c:#define elf_backend_sign_extend_vma TRUE
> elfn32-mips.c:#define elf_backend_sign_extend_vma TRUE
>
> i don't know why mips wants to do this, and considering literally no
> other target does it (ok, sh64 does it, but let's ignore them since
> that target is dead & being removed), it's probably not an accident.
> so we have to hack around it in the sim:
AFAIK, that's just how the machine works:
https://sourceware.org/ml/binutils/2002-09/msg00135.html
Thanks,
Pedro Alves