aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-10-25 15:20:24 +0000
committerDaniel Jacobowitz <drow@false.org>2007-10-25 15:20:24 +0000
commitc6e653525f8ea3235ab15b974cb9cf9ee686bf8e (patch)
treee1bcb2928b4be084de338068368ac4b177fab0d8 /binutils/readelf.c
parent7c8b76cc17aabbc966b92b12852f7f8b7f69dda7 (diff)
downloadgdb-c6e653525f8ea3235ab15b974cb9cf9ee686bf8e.zip
gdb-c6e653525f8ea3235ab15b974cb9cf9ee686bf8e.tar.gz
gdb-c6e653525f8ea3235ab15b974cb9cf9ee686bf8e.tar.bz2
* elf32-ppc.c (ppc_elf_merge_obj_attributes): Add support for
Tag_GNU_Power_ABI_Vector. * readelf.c (display_power_gnu_attribute): Add support for Tag_GNU_Power_ABI_Vector. * ppc.h (Tag_GNU_Power_ABI_Vector): New. * ld-powerpc/attr-gnu-8-1.s, ld-powerpc/attr-gnu-8-11.d, ld-powerpc/attr-gnu-8-2.s, ld-powerpc/attr-gnu-8-23.d, ld-powerpc/attr-gnu-8-3.s, ld-powerpc/attr-gnu-8-31.d: New. * ld-powerpc/powerpc.exp: Run new tests.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index abef69c..0ffc22b 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -8553,6 +8553,32 @@ display_power_gnu_attribute (unsigned char *p, int tag)
return p;
}
+ if (tag == Tag_GNU_Power_ABI_Vector)
+ {
+ val = read_uleb128 (p, &len);
+ p += len;
+ printf (" Tag_GNU_Power_ABI_Vector: ");
+ switch (val)
+ {
+ case 0:
+ printf ("Any\n");
+ break;
+ case 1:
+ printf ("Generic\n");
+ break;
+ case 2:
+ printf ("AltiVec\n");
+ break;
+ case 3:
+ printf ("SPE\n");
+ break;
+ default:
+ printf ("??? (%d)\n", val);
+ break;
+ }
+ return p;
+ }
+
if (tag & 1)
type = 1; /* String. */
else