summaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2011-07-04 18:33:37 +0000
committerThomas Schwinge <tschwinge@gnu.org>2011-07-04 18:33:37 +0000
commit59adf69ea540477fca65b6c3a7f520086c7cde25 (patch)
tree96a106d3462259c7ad47867d4e67fa2a2fb326e2 /gdb/osabi.c
parente5dd4106839ac5f5665dcb54706d5d396dac93da (diff)
downloadbinutils-gdb-59adf69ea540477fca65b6c3a7f520086c7cde25.tar.gz
ELFOSABI_GNU.
gdb/ * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the same way as ELFOSABI_NONE. <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index a264924fe89..e161b5800cb 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -514,11 +514,14 @@ generic_elf_osabi_sniffer (bfd *abfd)
switch (elfosabi)
{
case ELFOSABI_NONE:
+ case ELFOSABI_GNU:
/* When the EI_OSABI field in the ELF header 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-specific notes. */
+ in use we must look for OS-specific notes. The same applies
+ for ELFOSABI_GNU: this can mean GNU/Hurd, GNU/Linux, and
+ possibly more. */
bfd_map_over_sections (abfd,
generic_elf_osabi_sniff_abi_tag_sections,
&osabi);
@@ -532,14 +535,6 @@ generic_elf_osabi_sniffer (bfd *abfd)
osabi = GDB_OSABI_NETBSD_ELF;
break;
- case ELFOSABI_LINUX:
- osabi = GDB_OSABI_LINUX;
- break;
-
- case ELFOSABI_HURD:
- osabi = GDB_OSABI_HURD;
- break;
-
case ELFOSABI_SOLARIS:
osabi = GDB_OSABI_SOLARIS;
break;