From: Thomas Schwinge Date: Mon, 4 Jul 2011 18:33:37 +0000 (+0000) Subject: ELFOSABI_GNU. X-Git-Tag: sid-snapshot-20110801~267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59adf69ea540477fca65b6c3a7f520086c7cde25;p=platform%2Fupstream%2Fbinutils.git ELFOSABI_GNU. gdb/ * osabi.c (generic_elf_osabi_sniffer) : Handle in the same way as ELFOSABI_NONE. : Remove cases. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9593048..dc5a978 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-07-04 Thomas Schwinge + + * osabi.c (generic_elf_osabi_sniffer) : Handle in the + same way as ELFOSABI_NONE. + : Remove cases. + 2011-07-04 Thiago Jung Bauermann * breakpoint.c: Fix typos in comments. diff --git a/gdb/osabi.c b/gdb/osabi.c index a264924..e161b58 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;