* bsd-kvm.c, bsd-kvm.h: New files.
[deliverable/binutils-gdb.git] / gdb / osabi.c
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)
     {
This page took 0.024613 seconds and 4 git commands to generate.