From 3cbd1c0665a545ae6627ed4242c2939cd98f390d Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 29 Oct 2010 16:47:55 +0000 Subject: bfd: * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type): Check Tag_ABI_compatibility not Tag_compatibility. (elf32_tic6x_merge_attributes): Update compatibility attribute name in comment. Return FALSE if merging common attributes fails. binutils: * readelf.c (display_tic6x_attribute): Use Tag_ABI_compatibility not hardcoded 32. Display name of this attribute. gas: * doc/c-tic6x.texi (TIC6X Directives): Mention Tag_ABI_compatibility. gas/testsuite: * gas/tic6x/attr-compatibility-directive-1.d, gas/tic6x/attr-compatibility-directive-1.s, gas/tic6x/attr-compatibility-directive-2.d, gas/tic6x/attr-compatibility-directive-2.s: New tests. include/elf: * tic6x-attrs.h (Tag_ABI_compatibility): Define. ld/testsuite: * ld-tic6x/attr-compatibility-gnu-gnu.d, ld-tic6x/attr-compatibility-gnu-other.d, ld-tic6x/attr-compatibility-gnu.s, ld-tic6x/attr-compatibility-other-gnu.d, ld-tic6x/attr-compatibility-other-other.d, ld-tic6x/attr-compatibility-other.s: New tests. --- binutils/readelf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'binutils/readelf.c') diff --git a/binutils/readelf.c b/binutils/readelf.c index 3c8c020..44feac4 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -10822,11 +10822,10 @@ display_tic6x_attribute (unsigned char * p) } return p; - case 32: - /* Tag_compatibility - treated as generic by binutils for now - although not currently specified for C6X. */ + case Tag_ABI_compatibility: val = read_uleb128 (p, &len); p += len; + printf (" Tag_ABI_compatibility: "); printf (_("flag = %d, vendor = %s\n"), val, p); p += strlen ((char *) p) + 1; return p; -- cgit v1.1