* 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.
This commit is contained in:
Daniel Jacobowitz
2007-10-25 15:20:24 +00:00
parent 7c8b76cc17
commit c6e653525f
14 changed files with 152 additions and 16 deletions

View File

@@ -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