From c6e653525f8ea3235ab15b974cb9cf9ee686bf8e Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 25 Oct 2007 15:20:24 +0000 Subject: * 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. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) (limited to 'binutils') 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 + + * readelf.c (display_power_gnu_attribute): Add support for + Tag_GNU_Power_ABI_Vector. + 2007-10-25 Carlos Eduardo Seo * 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 -- cgit v1.1