This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/5] [ARC] Update merging attributes.


Hi Claudiu,

> bfd/
> 2017-09-19  Claudiu Zissulescu <claziss@synopsys.com>
> 
> 	* elf32-arc.c (arc_elf_merge_attributes): Fix merge attributes.
> 
> ld/
> 2017-09-19  Claudiu Zissulescu <claziss@synopsys.com>
> 
> 	* testsuite/ld-arc/attr-merge-6.d: New file.
> 	* testsuite/ld-arc/attr-merge-6a.s: Likewise.
> 	* testsuite/ld-arc/attr-merge-6b.s: Likewise.
> 	* testsuite/ld-arc/attr-merge-6bis.d: Likewise.


>  	case Tag_ARC_CPU_name:
> +	  if (!out_attr[i].s && in_attr[i].s)
> +	    out_attr[i].s = _bfd_elf_attr_strdup (obfd, in_attr[i].s);
>  	  break;

What should happen if out_attr[i].s and in_attr[i].s are both defined, and different ?

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]