* [PATCH] Add AT_HWCAP2 auxv tag
@ 2014-01-28 17:11 Ulrich Weigand
2014-01-30 5:37 ` Alan Modra
0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Weigand @ 2014-01-28 17:11 UTC (permalink / raw)
To: gdb-patches, binutils
Hello,
recent ppc64 Linux kernels provide a new auxv entry AT_HWCAP2,
which is currently not recognized by GDB, causing every use of
"info auxv" to show an error.
This patch adds the AT_HWCAP2 define to include/elf/common.h
and handles it in GDB.
OK for mainline (for the include/ part)?
Bye,
Ulrich
include/elf/ChangeLog:
* common.h (AT_HWCAP2): Define.
gdb/ChangeLog:
* auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
Index: binutils-gdb/gdb/auxv.c
===================================================================
--- binutils-gdb.orig/gdb/auxv.c
+++ binutils-gdb/gdb/auxv.c
@@ -442,6 +442,7 @@ fprint_target_auxv (struct ui_file *file
TAG (AT_IGNOREPPC, _("Entry should be ignored"), dec);
TAG (AT_BASE_PLATFORM, _("String identifying base platform"), str);
TAG (AT_RANDOM, _("Address of 16 random bytes"), hex);
+ TAG (AT_HWCAP2, _("Extension of AT_HWCAP"), hex);
TAG (AT_EXECFN, _("File name of executable"), str);
TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), dec);
TAG (AT_SYSINFO, _("Special system info/entry points"), hex);
Index: binutils-gdb/include/elf/common.h
===================================================================
--- binutils-gdb.orig/include/elf/common.h
+++ binutils-gdb/include/elf/common.h
@@ -959,6 +959,7 @@
#define AT_BASE_PLATFORM 24 /* String identifying real platform,
may differ from AT_PLATFORM. */
#define AT_RANDOM 25 /* Address of 16 random bytes. */
+#define AT_HWCAP2 26 /* Extension of AT_HWCAP. */
#define AT_EXECFN 31 /* Filename of executable. */
/* Pointer to the global system page used for system calls and other
nice things. */
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Add AT_HWCAP2 auxv tag
2014-01-28 17:11 [PATCH] Add AT_HWCAP2 auxv tag Ulrich Weigand
@ 2014-01-30 5:37 ` Alan Modra
2014-01-30 18:17 ` Ulrich Weigand
0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2014-01-30 5:37 UTC (permalink / raw)
To: Ulrich Weigand; +Cc: gdb-patches, binutils
On Tue, Jan 28, 2014 at 06:11:40PM +0100, Ulrich Weigand wrote:
> include/elf/ChangeLog:
>
> * common.h (AT_HWCAP2): Define.
OK, but really no need to ask for permission on this one.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Add AT_HWCAP2 auxv tag
2014-01-30 5:37 ` Alan Modra
@ 2014-01-30 18:17 ` Ulrich Weigand
0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Weigand @ 2014-01-30 18:17 UTC (permalink / raw)
To: Alan Modra; +Cc: gdb-patches, binutils
Alan Modra wrote:
> On Tue, Jan 28, 2014 at 06:11:40PM +0100, Ulrich Weigand wrote:
> > include/elf/ChangeLog:
> >
> > * common.h (AT_HWCAP2): Define.
>
> OK, but really no need to ask for permission on this one.
OK, I've checked this in now.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-30 18:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-28 17:11 [PATCH] Add AT_HWCAP2 auxv tag Ulrich Weigand
2014-01-30 5:37 ` Alan Modra
2014-01-30 18:17 ` Ulrich Weigand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox