From: John Baldwin Date: Fri, 26 Oct 2018 17:20:56 +0000 (-0700) Subject: Support AT_HWCAP2 on FreeBSD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7ded98f4cf9891cf04fe6af5c90b6af6709dff8;p=binutils-gdb.git Support AT_HWCAP2 on FreeBSD. include/ChangeLog: * elf/common.h (AT_FREEBSD_HWCAP2): Define. gdb/ChangeLog: * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f457212dc12..1a91804de2e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-10-26 John Baldwin + + * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2. + 2018-10-26 Jim Wilson * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h. diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c index 94ae2d6ab55..4e9ea816c59 100644 --- a/gdb/fbsd-tdep.c +++ b/gdb/fbsd-tdep.c @@ -1521,6 +1521,7 @@ fbsd_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, TAG (STACKPROT, _("Initial stack protection"), AUXV_FORMAT_HEX); TAG (EHDRFLAGS, _("ELF header e_flags"), AUXV_FORMAT_HEX); TAG (HWCAP, _("Machine-dependent CPU capability hints"), AUXV_FORMAT_HEX); + TAG (HWCAP2, _("Extension of AT_HWCAP"), AUXV_FORMAT_HEX); default: default_print_auxv_entry (gdbarch, file, type, val); return; diff --git a/include/ChangeLog b/include/ChangeLog index 0c692ee0e88..f0ff0faaae4 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2018-10-26 John Baldwin + + * elf/common.h (AT_FREEBSD_HWCAP2): Define. + 2018-10-09 Sudakshina Das * opcode/aarch64.h (AARCH64_FEATURE_SSBS): New. diff --git a/include/elf/common.h b/include/elf/common.h index e1942743056..da9ea036f49 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -1226,6 +1226,7 @@ #define AT_FREEBSD_STACKPROT 23 /* Initial stack protection. */ #define AT_FREEBSD_EHDRFLAGS 24 /* e_flags field from ELF header. */ #define AT_FREEBSD_HWCAP 25 /* CPU feature flags. */ +#define AT_FREEBSD_HWCAP2 26 /* CPU feature flags 2. */ #define AT_SUN_UID 2000 /* Effective user ID. */ #define AT_SUN_RUID 2001 /* Real user ID. */