* [PATCH] Recognize OpenBSD ELF
@ 2004-01-22 21:56 Mark Kettenis
[not found] ` <mailpost.1074808619.15112@news-sj1-1>
0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2004-01-22 21:56 UTC (permalink / raw)
To: gdb-patches
The attached patch is pretty obvious, so I committed it.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
OpenBSD .note.openbsd.ident sections.
Index: osabi.c
===================================================================
RCS file: /cvs/src/src/gdb/osabi.c,v
retrieving revision 1.26
diff -u -p -r1.26 osabi.c
--- osabi.c 21 Jan 2004 23:07:26 -0000 1.26
+++ osabi.c 22 Jan 2004 21:53:56 -0000
@@ -473,6 +473,15 @@ generic_elf_osabi_sniff_abi_tag_sections
return;
}
+ /* .note.openbsd.ident notes, used by OpenBSD. */
+ if (strcmp (name, ".note.openbsd.ident") == 0
+ && check_note (abfd, sect, note, "OpenBSD", 4, NT_OPENBSD_IDENT))
+ {
+ /* There is no need to check the version yet. */
+ *osabi = GDB_OSABI_OPENBSD_ELF;
+ return;
+ }
+
/* .note.netbsdcore.procinfo notes, used by NetBSD. */
if (strcmp (name, ".note.netbsdcore.procinfo") == 0)
{
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Recognize OpenBSD ELF
[not found] ` <mailpost.1074808619.15112@news-sj1-1>
@ 2004-01-22 22:14 ` cgd
2004-01-22 22:44 ` Mark Kettenis
0 siblings, 1 reply; 3+ messages in thread
From: cgd @ 2004-01-22 22:14 UTC (permalink / raw)
To: kettenis; +Cc: gdb-patches
At Thu, 22 Jan 2004 21:56:59 +0000 (UTC), "Mark Kettenis" wrote:
> The attached patch is pretty obvious, so I committed it.
i do wonder what the intended ordering of stuff in that function is.
looks like previous to this, things were in alphabetical order:
.note.ABI-tag
.note.netbsd.ident
.note.netbsdcore.procinfo
i dunno. probably not worth thinking about now, but maybe for
somebody who adds the next thing.
cgd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Recognize OpenBSD ELF
2004-01-22 22:14 ` cgd
@ 2004-01-22 22:44 ` Mark Kettenis
0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2004-01-22 22:44 UTC (permalink / raw)
To: cgd; +Cc: gdb-patches
From: cgd@broadcom.com
Date: 22 Jan 2004 14:14:17 -0800
At Thu, 22 Jan 2004 21:56:59 +0000 (UTC), "Mark Kettenis" wrote:
> The attached patch is pretty obvious, so I committed it.
i do wonder what the intended ordering of stuff in that function is.
looks like previous to this, things were in alphabetical order:
.note.ABI-tag
.note.netbsd.ident
.note.netbsdcore.procinfo
i dunno. probably not worth thinking about now, but maybe for
somebody who adds the next thing.
Well, I added .note.netbsd.ident and .note.netbsdcore.procinfo, so I
can say that the alphabetical order is completely unintentional. I'd
like to keep the .note.openbsd.ident close to .note.netbsd.ident since
they're almost identical.
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-22 22:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-22 21:56 [PATCH] Recognize OpenBSD ELF Mark Kettenis
[not found] ` <mailpost.1074808619.15112@news-sj1-1>
2004-01-22 22:14 ` cgd
2004-01-22 22:44 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox