From: "Maciej W. Rozycki" <macro@linux-mips.org>
To: John Baldwin <jhb@FreeBSD.org>
Cc: "Maciej W. Rozycki" <macro@imgtec.com>,
gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: [PATCH v3 1/3] Use bfd_mach_mips4000 as the default machine type for 64-bit MIPS ABIs.
Date: Wed, 04 Jan 2017 02:09:00 -0000 [thread overview]
Message-ID: <alpine.LFD.2.20.1701040149010.8613@eddie.linux-mips.org> (raw)
In-Reply-To: <20170103184341.58346-2-jhb@FreeBSD.org>
On Tue, 3 Jan 2017, John Baldwin wrote:
> If the flags word of an ELF header is empty, _bfd_elf_mips_mach always
> returned bfd_mach_mips3000 which is a 32-bit MIPS ABI. This change
> uses bfd_mach_mips4000 if the ELF class identifies a 64-bit binary.
Since this touches the MIPS port I'll have a look at it in details when I
am back next week.
In particular I'm a bit concerned about the inconsistency between n64 and
n32 it introduces by making one default to `bfd_mach_mips4000' but not the
other, while both are 64-bit ABIs requiring a 64-bit processor to run.
Which is also already known at the time `_bfd_elf_mips_mach' is being
called. So rather than changing its API entirely perhaps we just need an
extra `need_64bit' or suchlike extra argument for the callee to select the
BFD appropriately if the ISA is set incorrectly in the ELF object.
Also can you please remind me why this is the case in the first place and
how exactly such ELF objects are annotated, e.g. can we identify (limit
the handling of) such faulty objects with the EI_OSABI marker for example?
NB this should be explained in details for posterity in the commit message
itself.
Thanks,
Maciej
next prev parent reply other threads:[~2017-01-04 2:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-03 18:45 [PATCH v3 0/3] Add FreeBSD/mips targets to GDB John Baldwin
2017-01-03 18:45 ` [PATCH v3 1/3] Use bfd_mach_mips4000 as the default machine type for 64-bit MIPS ABIs John Baldwin
2017-01-04 2:09 ` Maciej W. Rozycki [this message]
2017-01-04 3:09 ` John Baldwin
2017-01-03 18:45 ` [PATCH v3 2/3] Add FreeBSD/mips architecture John Baldwin
2017-01-03 19:05 ` Luis Machado
2017-01-03 20:12 ` John Baldwin
2017-01-03 19:16 ` Eli Zaretskii
2017-01-04 21:23 ` Luis Machado
2017-01-04 22:10 ` John Baldwin
2017-01-05 0:52 ` Luis Machado
2017-01-03 18:45 ` [PATCH v3 3/3] Add native target for FreeBSD/mips John Baldwin
2017-01-03 19:15 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.20.1701040149010.8613@eddie.linux-mips.org \
--to=macro@linux-mips.org \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=jhb@FreeBSD.org \
--cc=macro@imgtec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox