From: Richard Earnshaw <rearnsha@arm.com>
To: Jason R Thorpe <thorpej@wasabisystems.com>
Cc: gdb-patches@sources.redhat.com, Richard.Earnshaw@arm.com
Subject: Re: [PATCH/RFA] Generic OS ABI handling
Date: Fri, 17 May 2002 05:35:00 -0000 [thread overview]
Message-ID: <200205171235.NAA22247@cam-mail2.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Thu, 16 May 2002 19:52:55 PDT." <20020516195255.G4613@dr-evil.shagadelic.org>
thorpej@wasabisystems.com said:
> Okay, here we go.. This has the includes cleaned up as suggested.
> This patch also includes the changes for SH (already approved by
> Elena), ARM (Richard? Does this patch look okay to you?), Alpha
> (maintainerless, but it looks okay to me :-), and MIPS (HI ANDREW :-)
Sorry Jason, I don't think this is correct. I don't think that it will
correctly handle the fact that existing GNU binutils tools for ARM set the
ELFOSABI field to ELFOSABI_ARM for starters, or the fact that ARM's
toolkit uses the top eight bits of the ELF EI_FLAGS field to set the ABI
in use. We either need to be able to extend the generic ELF sniffer or to
supply an answer that overrides it. Please take another look at the
existing ARM/ELF sniffer code in arm-tdep.c.
Maybe a sniffer registration should be able to set a priority level (maybe
just SPECIFIC/GENERIC) in a return field, then a SPECIFIC selection will
always override a GENERIC selection. A generic sniffer would always be
registered as returning a GENERIC match, and specific system sniffers
could override that.
Also, this comment
+ /* When elfosabi is ELFOSABI_NONE (0), this is supposed to indicate
+ that we're on a SVR4 system. However, some systems use note sections
+ to record OS/ABI info, but leave e_ident[EI_OSABI] zero. So we
+ have to check the note sections, too. */
Is not strictly correct (it's a derivative of a comment that I wrote
before I fully understood the meaning of this field).
A more accurate comment might be:
When elfosabi is ELFOSABI_NONE (0), then the ELF structures in the file
are conforming to the base specification for that machine (there are no
OS-specific extensions). In order to determine the real OS in use we must
look for OS notes that have been added.
R.
next prev parent reply other threads:[~2002-05-17 12:35 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-13 12:08 Jason R Thorpe
2002-05-16 10:02 ` Jason R Thorpe
2002-05-16 14:57 ` Elena Zannoni
2002-05-16 15:17 ` Jason R Thorpe
2002-05-16 15:35 ` Andrew Cagney
2002-05-16 15:42 ` Jason R Thorpe
2002-05-16 15:56 ` Andrew Cagney
2002-05-16 16:11 ` Jason R Thorpe
2002-05-16 19:53 ` Jason R Thorpe
2002-05-16 20:42 ` Elena Zannoni
2002-05-17 0:04 ` Jason R Thorpe
2002-05-17 1:04 ` Eli Zaretskii
2002-05-17 3:14 ` Alfred M. Szmidt
2002-05-17 10:51 ` Michael Snyder
2002-05-17 11:11 ` Alfred M. Szmidt
2002-05-17 11:33 ` Jason R Thorpe
2002-05-17 11:46 ` Alfred M. Szmidt
2002-05-17 11:57 ` Jason R Thorpe
2002-05-17 12:00 ` Alfred M. Szmidt
2002-05-17 11:31 ` Jason R Thorpe
2002-05-17 5:35 ` Richard Earnshaw [this message]
2002-05-17 11:53 ` Jason R Thorpe
2002-05-17 9:59 ` Andrew Cagney
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=200205171235.NAA22247@cam-mail2.cambridge.arm.com \
--to=rearnsha@arm.com \
--cc=Richard.Earnshaw@arm.com \
--cc=gdb-patches@sources.redhat.com \
--cc=thorpej@wasabisystems.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