diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-10-25 15:20:24 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-10-25 15:20:24 +0000 |
commit | c6e653525f8ea3235ab15b974cb9cf9ee686bf8e (patch) | |
tree | e1bcb2928b4be084de338068368ac4b177fab0d8 /binutils | |
parent | 7c8b76cc17aabbc966b92b12852f7f8b7f69dda7 (diff) | |
download | gdb-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')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 26 |
2 files changed, 31 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e9adcc4..b4e8f6c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2007-10-25 Daniel Jacobowitz <dan@codesourcery.com> + + * readelf.c (display_power_gnu_attribute): Add support for + Tag_GNU_Power_ABI_Vector. + 2007-10-25 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> * readelf.c (get_note_type): Handle NT_PPC_VMX. 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 |