From db1e1b45b417dc3e7d37f401828afa18328d8508 Mon Sep 17 00:00:00 2001 From: claziss Date: Mon, 6 Aug 2018 16:41:32 +0300 Subject: [PATCH] [ARC] Add Tag_ARC_ATR_version. Add a new tag (Tag_ARC_ATR_version) used to indicate if current attributes are interpreted in GNU way. This attribute is used by Synopsys custom compiler to correctly identify and interpret the object attributes section as generated by GNU tools. gas/ 2017-08-02 Claudiu Zissulescu * config/tc-arc.c (arc_set_public_attributes): Add Tag_ARC_ATR_version. (arc_convert_symbolic_attribute): Likewise. * testsuite/gas/arc/attr-arc600.d: Update test. * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise. * testsuite/gas/arc/attr-arc600_norm.d: Likewise. * testsuite/gas/arc/attr-arc601.d: Likewise. * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise. * testsuite/gas/arc/attr-arc601_mul64.d: Likewise. * testsuite/gas/arc/attr-arc601_norm.d: Likewise. * testsuite/gas/arc/attr-arc700.d: Likewise. * testsuite/gas/arc/attr-arcem.d: Likewise. * testsuite/gas/arc/attr-archs.d: Likewise. * testsuite/gas/arc/attr-autodetect-1.d: Likewise. * testsuite/gas/arc/attr-cpu-a601.d: Likewise. * testsuite/gas/arc/attr-cpu-a700.d: Likewise. * testsuite/gas/arc/attr-cpu-em.d: Likewise. * testsuite/gas/arc/attr-cpu-hs.d: Likewise. * testsuite/gas/arc/attr-em.d: Likewise. * testsuite/gas/arc/attr-em4.d: Likewise. * testsuite/gas/arc/attr-em4_dmips.d: Likewise. * testsuite/gas/arc/attr-em4_fpuda.d: Likewise. * testsuite/gas/arc/attr-em4_fpus.d: Likewise. * testsuite/gas/arc/attr-hs.d: Likewise. * testsuite/gas/arc/attr-hs34.d: Likewise. * testsuite/gas/arc/attr-hs38.d: Likewise. * testsuite/gas/arc/attr-hs38_linux.d: Likewise. * testsuite/gas/arc/attr-mul64.d: Likewise. * testsuite/gas/arc/attr-name.d: Likewise. * testsuite/gas/arc/attr-nps400.d: Likewise. * testsuite/gas/arc/attr-override-mcpu.d: Likewise. * testsuite/gas/arc/attr-quarkse_em.d: Likewise. bfd/ 2017-08-02 Claudiu Zissulescu * elf32-arc.c (arc_elf_merge_attributes): Handle Tag_ARC_ATR_version. binutils/ 2017-08-02 Claudiu Zissulescu * readelf.c (display_arc_attribute): Print Tag_ARC_ATR_version. include/ 2017-08-02 Claudiu Zissulescu * elf/arc.h (Tag_ARC_ATR_version): New tag. ld/ 2017-08-02 Claudiu Zissulescu * testsuite/ld-arc/attr-merge-0.d: Update test. * testsuite/ld-arc/attr-merge-1.d: Likewise. * testsuite/ld-arc/attr-merge-2.d: Likewise. * testsuite/ld-arc/attr-merge-3.d: Likewise. * testsuite/ld-arc/attr-merge-5.d: Likewise. --- bfd/ChangeLog | 5 +++ bfd/elf32-arc.c | 6 ++++ binutils/ChangeLog | 4 +++ binutils/readelf.c | 6 ++++ gas/ChangeLog | 35 ++++++++++++++++++++ gas/config/tc-arc.c | 6 +++- gas/testsuite/gas/arc/attr-arc600.d | 1 + gas/testsuite/gas/arc/attr-arc600_mul32x16.d | 1 + gas/testsuite/gas/arc/attr-arc600_norm.d | 1 + gas/testsuite/gas/arc/attr-arc601.d | 1 + gas/testsuite/gas/arc/attr-arc601_mul32x16.d | 1 + gas/testsuite/gas/arc/attr-arc601_mul64.d | 1 + gas/testsuite/gas/arc/attr-arc601_norm.d | 1 + gas/testsuite/gas/arc/attr-arc700.d | 1 + gas/testsuite/gas/arc/attr-arcem.d | 1 + gas/testsuite/gas/arc/attr-archs.d | 1 + gas/testsuite/gas/arc/attr-autodetect-1.d | 1 + gas/testsuite/gas/arc/attr-cpu-a601.d | 1 + gas/testsuite/gas/arc/attr-cpu-a700.d | 1 + gas/testsuite/gas/arc/attr-cpu-em.d | 1 + gas/testsuite/gas/arc/attr-cpu-hs.d | 1 + gas/testsuite/gas/arc/attr-em.d | 1 + gas/testsuite/gas/arc/attr-em4.d | 1 + gas/testsuite/gas/arc/attr-em4_dmips.d | 1 + gas/testsuite/gas/arc/attr-em4_fpuda.d | 1 + gas/testsuite/gas/arc/attr-em4_fpus.d | 1 + gas/testsuite/gas/arc/attr-hs.d | 1 + gas/testsuite/gas/arc/attr-hs34.d | 1 + gas/testsuite/gas/arc/attr-hs38.d | 1 + gas/testsuite/gas/arc/attr-hs38_linux.d | 1 + gas/testsuite/gas/arc/attr-mul64.d | 1 + gas/testsuite/gas/arc/attr-name.d | 1 + gas/testsuite/gas/arc/attr-nps400.d | 1 + gas/testsuite/gas/arc/attr-override-mcpu.d | 1 + gas/testsuite/gas/arc/attr-quarkse_em.d | 1 + include/ChangeLog | 4 +++ include/elf/arc.h | 3 +- ld/ChangeLog | 8 +++++ ld/testsuite/ld-arc/attr-merge-0.d | 1 + ld/testsuite/ld-arc/attr-merge-1.d | 1 + ld/testsuite/ld-arc/attr-merge-2.d | 1 + ld/testsuite/ld-arc/attr-merge-3.d | 1 + ld/testsuite/ld-arc/attr-merge-5.d | 1 + 43 files changed, 109 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 95fe0eef071..6b5481c2d45 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2018-08-06 Claudiu Zissulescu + + * elf32-arc.c (arc_elf_merge_attributes): Handle + Tag_ARC_ATR_version. + 2018-08-05 Alan Modra * elf64-ppc.c (ADDI_R12_R11, ADDI_R12_R12, LIS_R12), diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index a48ef0ca15f..aaa2c3b9907 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -578,6 +578,7 @@ arc_elf_merge_attributes (bfd *ibfd, struct bfd_link_info *info) bfd_boolean result = TRUE; const char *sec_name = get_elf_backend_data (ibfd)->obj_attrs_section; char *tagname = NULL; + int offset = 0; /* Skip the linker stubs file. This preserves previous behavior of accepting unknown attributes in the first input file - but @@ -805,6 +806,11 @@ arc_elf_merge_attributes (bfd *ibfd, struct bfd_link_info *info) /* It is handled in Tag_ARC_CPU_base. */ break; + case Tag_ARC_ATR_version: + if (out_attr[i].i == 0) + out_attr[i].i = in_attr[i].i; + break; + default: result = result && _bfd_elf_merge_unknown_attribute_low (ibfd, obfd, i); diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d7648eff785..9fce7b67213 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2018-08-06 Claudiu Zissulescu + + * readelf.c (display_arc_attribute): Print Tag_ARC_ATR_version. + 2018-08-03 Nick Clifton * objcopy.c (merge_gnu_build_notes): Delete empty notes. Merge diff --git a/binutils/readelf.c b/binutils/readelf.c index 90dbdf7e2b4..8a61db64595 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -14246,6 +14246,12 @@ display_arc_attribute (unsigned char * p, printf (" Tag_ARC_ISA_mpy_option: %d\n", val); break; + case Tag_ARC_ATR_version: + val = read_uleb128 (p, &len, end); + p += len; + printf (" Tag_ARC_ATR_version: %d\n", val); + break; + default: return display_tag_value (tag & 1, p, end); } diff --git a/gas/ChangeLog b/gas/ChangeLog index a97edcde545..9c764c7f310 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,38 @@ +2018-08-06 Claudiu Zissulescu + + * config/tc-arc.c (arc_set_public_attributes): Add + Tag_ARC_ATR_version. + (arc_convert_symbolic_attribute): Likewise. + * testsuite/gas/arc/attr-arc600.d: Update test. + * testsuite/gas/arc/attr-arc600_mul32x16.d: Likewise. + * testsuite/gas/arc/attr-arc600_norm.d: Likewise. + * testsuite/gas/arc/attr-arc601.d: Likewise. + * testsuite/gas/arc/attr-arc601_mul32x16.d: Likewise. + * testsuite/gas/arc/attr-arc601_mul64.d: Likewise. + * testsuite/gas/arc/attr-arc601_norm.d: Likewise. + * testsuite/gas/arc/attr-arc700.d: Likewise. + * testsuite/gas/arc/attr-arcem.d: Likewise. + * testsuite/gas/arc/attr-archs.d: Likewise. + * testsuite/gas/arc/attr-autodetect-1.d: Likewise. + * testsuite/gas/arc/attr-cpu-a601.d: Likewise. + * testsuite/gas/arc/attr-cpu-a700.d: Likewise. + * testsuite/gas/arc/attr-cpu-em.d: Likewise. + * testsuite/gas/arc/attr-cpu-hs.d: Likewise. + * testsuite/gas/arc/attr-em.d: Likewise. + * testsuite/gas/arc/attr-em4.d: Likewise. + * testsuite/gas/arc/attr-em4_dmips.d: Likewise. + * testsuite/gas/arc/attr-em4_fpuda.d: Likewise. + * testsuite/gas/arc/attr-em4_fpus.d: Likewise. + * testsuite/gas/arc/attr-hs.d: Likewise. + * testsuite/gas/arc/attr-hs34.d: Likewise. + * testsuite/gas/arc/attr-hs38.d: Likewise. + * testsuite/gas/arc/attr-hs38_linux.d: Likewise. + * testsuite/gas/arc/attr-mul64.d: Likewise. + * testsuite/gas/arc/attr-name.d: Likewise. + * testsuite/gas/arc/attr-nps400.d: Likewise. + * testsuite/gas/arc/attr-override-mcpu.d: Likewise. + * testsuite/gas/arc/attr-quarkse_em.d: Likewise. + 2018-08-06 Claudiu Zissulescu * config/tc-arc.c (find_opcode_match): Accept uppercase aux-regs diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index 3fc907a163a..7bf30816c09 100644 --- a/gas/config/tc-arc.c +++ b/gas/config/tc-arc.c @@ -5014,6 +5014,9 @@ arc_set_public_attributes (void) /* Tag_ARC_ABI_tls. */ arc_set_attribute_int (Tag_ARC_ABI_tls, tls_option); + + /* Tag_ARC_ATR_version. */ + arc_set_attribute_int (Tag_ARC_ATR_version, 1); } /* Add the default contents for the .ARC.attributes section. */ @@ -5058,7 +5061,8 @@ int arc_convert_symbolic_attribute (const char *name) T (Tag_ARC_ABI_double_size), T (Tag_ARC_ISA_config), T (Tag_ARC_ISA_apex), - T (Tag_ARC_ISA_mpy_option) + T (Tag_ARC_ISA_mpy_option), + T (Tag_ARC_ATR_version) #undef T }; unsigned int i; diff --git a/gas/testsuite/gas/arc/attr-arc600.d b/gas/testsuite/gas/arc/attr-arc600.d index 07eecc6a0d9..db252f81cd9 100644 --- a/gas/testsuite/gas/arc/attr-arc600.d +++ b/gas/testsuite/gas/arc/attr-arc600.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc600" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arc600_mul32x16.d b/gas/testsuite/gas/arc/attr-arc600_mul32x16.d index 6ca411d3ee0..b88839dea60 100644 --- a/gas/testsuite/gas/arc/attr-arc600_mul32x16.d +++ b/gas/testsuite/gas/arc/attr-arc600_mul32x16.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc600_mul32x16" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arc600_norm.d b/gas/testsuite/gas/arc/attr-arc600_norm.d index 2ff0a71b4ff..58dd43ee5cc 100644 --- a/gas/testsuite/gas/arc/attr-arc600_norm.d +++ b/gas/testsuite/gas/arc/attr-arc600_norm.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc600_norm" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arc601.d b/gas/testsuite/gas/arc/attr-arc601.d index f8fb744f80d..7c660569e91 100644 --- a/gas/testsuite/gas/arc/attr-arc601.d +++ b/gas/testsuite/gas/arc/attr-arc601.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc601" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arc601_mul32x16.d b/gas/testsuite/gas/arc/attr-arc601_mul32x16.d index 81042762432..9fff7508e35 100644 --- a/gas/testsuite/gas/arc/attr-arc601_mul32x16.d +++ b/gas/testsuite/gas/arc/attr-arc601_mul32x16.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc601_mul32x16" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arc601_mul64.d b/gas/testsuite/gas/arc/attr-arc601_mul64.d index 998547652f9..96ff6961a42 100644 --- a/gas/testsuite/gas/arc/attr-arc601_mul64.d +++ b/gas/testsuite/gas/arc/attr-arc601_mul64.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc601_mul64" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arc601_norm.d b/gas/testsuite/gas/arc/attr-arc601_norm.d index 18131dcb65f..6019a12f841 100644 --- a/gas/testsuite/gas/arc/attr-arc601_norm.d +++ b/gas/testsuite/gas/arc/attr-arc601_norm.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc601_norm" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arc700.d b/gas/testsuite/gas/arc/attr-arc700.d index cc4dc38cccc..41a5f740c6f 100644 --- a/gas/testsuite/gas/arc/attr-arc700.d +++ b/gas/testsuite/gas/arc/attr-arc700.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC7xx Tag_ARC_CPU_name: "arc700" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-arcem.d b/gas/testsuite/gas/arc/attr-arcem.d index da9747387fc..25a6958bd7f 100644 --- a/gas/testsuite/gas/arc/attr-arcem.d +++ b/gas/testsuite/gas/arc/attr-arcem.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARCEM Tag_ARC_CPU_name: "arcem" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-archs.d b/gas/testsuite/gas/arc/attr-archs.d index c0d2e6350c5..a32d76ea42b 100644 --- a/gas/testsuite/gas/arc/attr-archs.d +++ b/gas/testsuite/gas/arc/attr-archs.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "archs" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-autodetect-1.d b/gas/testsuite/gas/arc/attr-autodetect-1.d index bbe85254984..73352c9e567 100644 --- a/gas/testsuite/gas/arc/attr-autodetect-1.d +++ b/gas/testsuite/gas/arc/attr-autodetect-1.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_ABI_pic: GNU Tag_ARC_ABI_tls: r25 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-cpu-a601.d b/gas/testsuite/gas/arc/attr-cpu-a601.d index 33a2f3147d2..97c1f91d4c5 100644 --- a/gas/testsuite/gas/arc/attr-cpu-a601.d +++ b/gas/testsuite/gas/arc/attr-cpu-a601.d @@ -6,3 +6,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc601" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-cpu-a700.d b/gas/testsuite/gas/arc/attr-cpu-a700.d index db69adecc62..41c0c67a5ae 100644 --- a/gas/testsuite/gas/arc/attr-cpu-a700.d +++ b/gas/testsuite/gas/arc/attr-cpu-a700.d @@ -6,3 +6,4 @@ File Attributes Tag_ARC_CPU_base: ARC7xx Tag_ARC_CPU_name: "arc700" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-cpu-em.d b/gas/testsuite/gas/arc/attr-cpu-em.d index c635bd5ad74..5b26025ce0c 100644 --- a/gas/testsuite/gas/arc/attr-cpu-em.d +++ b/gas/testsuite/gas/arc/attr-cpu-em.d @@ -6,3 +6,4 @@ File Attributes Tag_ARC_CPU_base: ARCEM Tag_ARC_CPU_name: "em" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-cpu-hs.d b/gas/testsuite/gas/arc/attr-cpu-hs.d index 4de82ad7d7a..aa8a3e66b68 100644 --- a/gas/testsuite/gas/arc/attr-cpu-hs.d +++ b/gas/testsuite/gas/arc/attr-cpu-hs.d @@ -7,3 +7,4 @@ File Attributes Tag_ARC_CPU_name: "hs" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-em.d b/gas/testsuite/gas/arc/attr-em.d index a322ff65814..94e365ac694 100644 --- a/gas/testsuite/gas/arc/attr-em.d +++ b/gas/testsuite/gas/arc/attr-em.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARCEM Tag_ARC_CPU_name: "em" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-em4.d b/gas/testsuite/gas/arc/attr-em4.d index bbc6e676f05..32d312fdad4 100644 --- a/gas/testsuite/gas/arc/attr-em4.d +++ b/gas/testsuite/gas/arc/attr-em4.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "em4" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-em4_dmips.d b/gas/testsuite/gas/arc/attr-em4_dmips.d index 4d923bdb98c..1973db27bcd 100644 --- a/gas/testsuite/gas/arc/attr-em4_dmips.d +++ b/gas/testsuite/gas/arc/attr-em4_dmips.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "em4_dmips" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-em4_fpuda.d b/gas/testsuite/gas/arc/attr-em4_fpuda.d index 432315a34cf..2ff3f66701e 100644 --- a/gas/testsuite/gas/arc/attr-em4_fpuda.d +++ b/gas/testsuite/gas/arc/attr-em4_fpuda.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "em4_fpuda" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD,FPUDA" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-em4_fpus.d b/gas/testsuite/gas/arc/attr-em4_fpus.d index b658e2aa57d..e5cdb914d84 100644 --- a/gas/testsuite/gas/arc/attr-em4_fpus.d +++ b/gas/testsuite/gas/arc/attr-em4_fpus.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "em4_fpus" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-hs.d b/gas/testsuite/gas/arc/attr-hs.d index 8486214918e..716635bef2e 100644 --- a/gas/testsuite/gas/arc/attr-hs.d +++ b/gas/testsuite/gas/arc/attr-hs.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "hs" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-hs34.d b/gas/testsuite/gas/arc/attr-hs34.d index 8b92ec6a9cb..2bf6a12de4b 100644 --- a/gas/testsuite/gas/arc/attr-hs34.d +++ b/gas/testsuite/gas/arc/attr-hs34.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "hs34" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-hs38.d b/gas/testsuite/gas/arc/attr-hs38.d index 89724313a9b..915ccdd4d64 100644 --- a/gas/testsuite/gas/arc/attr-hs38.d +++ b/gas/testsuite/gas/arc/attr-hs38.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "hs38" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-hs38_linux.d b/gas/testsuite/gas/arc/attr-hs38_linux.d index a695f29dfa6..41b5eda788a 100644 --- a/gas/testsuite/gas/arc/attr-hs38_linux.d +++ b/gas/testsuite/gas/arc/attr-hs38_linux.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "hs38_linux" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-mul64.d b/gas/testsuite/gas/arc/attr-mul64.d index 5fc75ff9653..81cb72244f5 100644 --- a/gas/testsuite/gas/arc/attr-mul64.d +++ b/gas/testsuite/gas/arc/attr-mul64.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_base: ARC6xx Tag_ARC_CPU_name: "arc600_mul64" Tag_ARC_ABI_osver: v4 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-name.d b/gas/testsuite/gas/arc/attr-name.d index ff9a34bb9ba..25e3ce823b0 100644 --- a/gas/testsuite/gas/arc/attr-name.d +++ b/gas/testsuite/gas/arc/attr-name.d @@ -20,3 +20,4 @@ File Attributes Tag_ARC_ISA_config: "CD,FPUDA" Tag_ARC_ISA_apex: "QUARKSE" Tag_ARC_ISA_mpy_option: 6 + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-nps400.d b/gas/testsuite/gas/arc/attr-nps400.d index 15009cedf0b..403d04635b1 100644 --- a/gas/testsuite/gas/arc/attr-nps400.d +++ b/gas/testsuite/gas/arc/attr-nps400.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "nps400" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "NPS400" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-override-mcpu.d b/gas/testsuite/gas/arc/attr-override-mcpu.d index 67241e99df7..a8a88e4463f 100644 --- a/gas/testsuite/gas/arc/attr-override-mcpu.d +++ b/gas/testsuite/gas/arc/attr-override-mcpu.d @@ -8,3 +8,4 @@ File Attributes Tag_ARC_CPU_name: "archs" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/gas/testsuite/gas/arc/attr-quarkse_em.d b/gas/testsuite/gas/arc/attr-quarkse_em.d index 64c85c3e681..3f433c4d557 100644 --- a/gas/testsuite/gas/arc/attr-quarkse_em.d +++ b/gas/testsuite/gas/arc/attr-quarkse_em.d @@ -9,3 +9,4 @@ File Attributes Tag_ARC_CPU_name: "quarkse_em" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD,DPFP,SPFP" + Tag_ARC_ATR_version: 1 diff --git a/include/ChangeLog b/include/ChangeLog index e36dd49b050..d75f11c944f 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2018-08-06 Claudiu Zissulescu + + * elf/arc.h (Tag_ARC_ATR_version): New tag. + 2018-08-06 Claudiu Zissulescu * opcode/arc.h (ARC_OPCODE_ARCV1): Define. diff --git a/include/elf/arc.h b/include/elf/arc.h index 85617fc0c9f..72eaf1be164 100644 --- a/include/elf/arc.h +++ b/include/elf/arc.h @@ -83,7 +83,8 @@ enum { Tag_ARC_ABI_double_size, Tag_ARC_ISA_config, Tag_ARC_ISA_apex, - Tag_ARC_ISA_mpy_option + Tag_ARC_ISA_mpy_option, + Tag_ARC_ATR_version = 20 }; /* Values for the Tag_ARC_cpu_base attribute. */ diff --git a/ld/ChangeLog b/ld/ChangeLog index 62ba5300777..04f19ce082a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2018-08-06 Claudiu Zissulescu + + * testsuite/ld-arc/attr-merge-0.d: Update test. + * testsuite/ld-arc/attr-merge-1.d: Likewise. + * testsuite/ld-arc/attr-merge-2.d: Likewise. + * testsuite/ld-arc/attr-merge-3.d: Likewise. + * testsuite/ld-arc/attr-merge-5.d: Likewise. + 2018-08-05 Alan Modra * testsuite/ld-powerpc/ext.d, diff --git a/ld/testsuite/ld-arc/attr-merge-0.d b/ld/testsuite/ld-arc/attr-merge-0.d index 2c3a9091a97..eda47ade282 100644 --- a/ld/testsuite/ld-arc/attr-merge-0.d +++ b/ld/testsuite/ld-arc/attr-merge-0.d @@ -10,3 +10,4 @@ File Attributes Tag_ARC_CPU_name: "em" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/ld/testsuite/ld-arc/attr-merge-1.d b/ld/testsuite/ld-arc/attr-merge-1.d index e2e804d78a9..e4ef91993df 100644 --- a/ld/testsuite/ld-arc/attr-merge-1.d +++ b/ld/testsuite/ld-arc/attr-merge-1.d @@ -10,3 +10,4 @@ File Attributes Tag_ARC_CPU_name: "em" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD,DPFP,SPFP" + Tag_ARC_ATR_version: 1 diff --git a/ld/testsuite/ld-arc/attr-merge-2.d b/ld/testsuite/ld-arc/attr-merge-2.d index 4c6898e3c5e..9d57d4857e2 100644 --- a/ld/testsuite/ld-arc/attr-merge-2.d +++ b/ld/testsuite/ld-arc/attr-merge-2.d @@ -10,3 +10,4 @@ File Attributes Tag_ARC_CPU_name: "em" Tag_ARC_ABI_osver: v5 Tag_ARC_ISA_config: "CD" + Tag_ARC_ATR_version: 1 diff --git a/ld/testsuite/ld-arc/attr-merge-3.d b/ld/testsuite/ld-arc/attr-merge-3.d index 00d6de08cc1..bac898f1e8f 100644 --- a/ld/testsuite/ld-arc/attr-merge-3.d +++ b/ld/testsuite/ld-arc/attr-merge-3.d @@ -10,3 +10,4 @@ File Attributes Tag_ARC_CPU_name: "archs" Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD,FPUS" + Tag_ARC_ATR_version: 1 diff --git a/ld/testsuite/ld-arc/attr-merge-5.d b/ld/testsuite/ld-arc/attr-merge-5.d index f08b7624091..3f661bec0da 100644 --- a/ld/testsuite/ld-arc/attr-merge-5.d +++ b/ld/testsuite/ld-arc/attr-merge-5.d @@ -11,3 +11,4 @@ File Attributes Tag_ARC_ABI_osver: v4 Tag_ARC_ISA_config: "CD,FPUDA,BS" Tag_ARC_ISA_mpy_option: 6 + Tag_ARC_ATR_version: 1 -- 2.30.2