mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-27 03:54:29 +00:00
* osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
traditonal string branding within the ELF header.
This commit is contained in:
parent
228c6d410e
commit
bb21884d54
@ -1,3 +1,8 @@
|
||||
2002-07-04 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
|
||||
traditonal string branding within the ELF header.
|
||||
|
||||
2002-07-04 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* symtab.c (remove_params): New function.
|
||||
|
@ -408,6 +408,15 @@ generic_elf_osabi_sniffer (bfd *abfd)
|
||||
break;
|
||||
}
|
||||
|
||||
if (osabi == GDB_OSABI_UNKNOWN)
|
||||
{
|
||||
/* The FreeBSD folks have been naughty; they stored the string
|
||||
"FreeBSD" in the padding of the e_ident field of the ELF
|
||||
header to "brand" their ELF binaries in FreeBSD 3.x. */
|
||||
if (strcmp (&elf_elfheader (abfd)->e_ident[8], "FreeBSD") == 0)
|
||||
osabi = GDB_OSABI_FREEBSD_ELF;
|
||||
}
|
||||
|
||||
return osabi;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user