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.
This commit is contained in:
Thomas Schwinge 2011-07-04 18:33:37 +00:00
parent e5dd410683
commit 59adf69ea5
2 changed files with 10 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2011-07-04 Thomas Schwinge <thomas@schwinge.name>
* osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
same way as ELFOSABI_NONE.
<ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com> 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
* breakpoint.c: Fix typos in comments. * breakpoint.c: Fix typos in comments.

View File

@ -514,11 +514,14 @@ generic_elf_osabi_sniffer (bfd *abfd)
switch (elfosabi) switch (elfosabi)
{ {
case ELFOSABI_NONE: case ELFOSABI_NONE:
case ELFOSABI_GNU:
/* When the EI_OSABI field in the ELF header is ELFOSABI_NONE /* When the EI_OSABI field in the ELF header is ELFOSABI_NONE
(0), then the ELF structures in the file are conforming to (0), then the ELF structures in the file are conforming to
the base specification for that machine (there are no the base specification for that machine (there are no
OS-specific extensions). In order to determine the real OS 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, bfd_map_over_sections (abfd,
generic_elf_osabi_sniff_abi_tag_sections, generic_elf_osabi_sniff_abi_tag_sections,
&osabi); &osabi);
@ -532,14 +535,6 @@ generic_elf_osabi_sniffer (bfd *abfd)
osabi = GDB_OSABI_NETBSD_ELF; osabi = GDB_OSABI_NETBSD_ELF;
break; break;
case ELFOSABI_LINUX:
osabi = GDB_OSABI_LINUX;
break;
case ELFOSABI_HURD:
osabi = GDB_OSABI_HURD;
break;
case ELFOSABI_SOLARIS: case ELFOSABI_SOLARIS:
osabi = GDB_OSABI_SOLARIS; osabi = GDB_OSABI_SOLARIS;
break; break;