S/390: z13 use GNU attribute to indicate vector ABI

bfd/
	* elf-s390-common.c (elf_s390_merge_obj_attributes): New function.
	* elf32-s390.c (elf32_s390_merge_private_bfd_data): Call
	elf_s390_merge_obj_attributes.
	* elf64-s390.c (elf64_s390_merge_private_bfd_data): New function.

binutils/
	* readelf.c (display_s390_gnu_attribute): New function.
	(process_s390_specific): New function.
	(process_arch_specific): Call process_s390_specific.

gas/
	* doc/as.texinfo: Document Tag_GNU_S390_ABI_Vector.

include/elf/
	* s390.h: Define Tag_GNU_S390_ABI_Vector.
This commit is contained in:
Andreas Krebbel 2015-04-27 10:32:23 +02:00
parent 3b78cfe103
commit 643f7afb0d
10 changed files with 180 additions and 3 deletions

View file

@ -129,6 +129,17 @@ START_RELOC_NUMBERS (elf_s390_reloc_type)
RELOC_NUMBER (R_390_GNU_VTENTRY, 251)
END_RELOC_NUMBERS (R_390_max)
/* Object attribute tags. */
enum
{
/* 0-3 are generic. */
/* 4 is reserved for the FP ABI. */
/* Vector ABI:
0 = not affected by the vector ABI, or not tagged.
1 = software vector ABI being used
2 = hardware vector ABI being used. */
Tag_GNU_S390_ABI_Vector = 8,
};
#endif /* _ELF_390_H */