mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
fix ABI detection logic: for 64-bit elf objects set default ABI to n64.
This commit is contained in:
parent
a461b20142
commit
2de64e71fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233159
@ -5437,6 +5437,13 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
}
|
||||
}
|
||||
|
||||
/* Default 64-bit objects to N64 instead of O32. */
|
||||
if (found_abi == MIPS_ABI_UNKNOWN
|
||||
&& info.abfd != NULL
|
||||
&& bfd_get_flavour (info.abfd) == bfd_target_elf_flavour
|
||||
&& elf_elfheader (info.abfd)->e_ident[EI_CLASS] == ELFCLASS64)
|
||||
found_abi = MIPS_ABI_N64;
|
||||
|
||||
if (gdbarch_debug)
|
||||
fprintf_unfiltered (gdb_stdlog, "mips_gdbarch_init: found_abi = %d\n",
|
||||
found_abi);
|
||||
|
Loading…
Reference in New Issue
Block a user