diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-01-22 21:56:34 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-01-22 21:56:34 +0000 |
commit | 7519fdbad13323b92d82f74a0cb11177d48329a5 (patch) | |
tree | 07213a93cb7ac41a3151697d5d1ae6f02f2dfa9e /gdb/osabi.c | |
parent | bf3ff0a2d620cabcb4544275ce249750e0829de4 (diff) | |
download | gdb-7519fdbad13323b92d82f74a0cb11177d48329a5.tar.gz |
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
OpenBSD .note.openbsd.ident sections.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r-- | gdb/osabi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c index 239d508309f..3acfc703648 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -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) { |