diff options
author | Klaus Ziegler <klausz@haus-gisela.de> | 2022-01-25 17:32:03 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-01-25 17:32:03 +0000 |
commit | b60d9d90ce6e16d8d1c93e3b16648066dfc4c58b (patch) | |
tree | f6a9c8586a7275ee5a3ea8602fac913f4d81dbac /include | |
parent | ff0adc533577fd04edbd2168f01ea2ac38879cea (diff) |
Fix problem building binutils on SPARC/amd64
PR 28816
* elf/common.h (AT_SUN_HWCAP): Make definition conditional.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/elf/common.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index cfad7f1e06..416fb6b877 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2022-01-25 Klaus Ziegler <klausz@haus-gisela.de> + + PR 28816 + * elf/common.h (AT_SUN_HWCAP): Make definition conditional. + 2022-01-22 Nick Clifton <nickc@redhat.com> * 2.38 release branch created. diff --git a/include/elf/common.h b/include/elf/common.h index 190532b8fd..b1bfa9162b 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -1406,7 +1406,9 @@ #define AT_SUN_PLATFORM 2008 /* Platform name string. */ #define AT_SUN_CAP_HW1 2009 /* Machine dependent hints about processor capabilities. */ +#ifndef AT_SUN_HWCAP #define AT_SUN_HWCAP AT_SUN_CAP_HW1 /* For backward compat only. */ +#endif #define AT_SUN_IFLUSH 2010 /* Should flush icache? */ #define AT_SUN_CPU 2011 /* CPU name string. */ #define AT_SUN_EMUL_ENTRY 2012 /* COFF entry point address. */ |