]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
authorMark Kettenis <kettenis@gnu.org>
Thu, 22 Jan 2004 21:56:34 +0000 (21:56 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 22 Jan 2004 21:56:34 +0000 (21:56 +0000)
OpenBSD .note.openbsd.ident sections.

gdb/ChangeLog
gdb/osabi.c

index 2d8cc4d39308678425a2ed7a7be724173a40d35e..aaa1b3c73c181e817d90facd2f8aeb518a34c022 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-22  Mark Kettenis  <kettenis@gnu.org>
+
+       * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
+       OpenBSD .note.openbsd.ident sections.
+
 2004-01-22  David Carlton  <carlton@kealia.com>
 
        * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
index 239d508309fcd771a9d2e4275b7969ba9a605e74..3acfc703648e8611c91f136e8312fd89a2b6c024 100644 (file)
@@ -473,6 +473,15 @@ generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d",
       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)
     {