This simple patch sets the ELF header flag EF_AARCH64_CHERI_PURECAP for
purecap Morello object files, as documented in aaelf64-morello:
https://github.com/ARM-software/abi-aa/blob/main/aaelf64-morello/aaelf64-morello.rst
gas/ChangeLog:
2021-09-24 Alex Coplan <alex.coplan@arm.com>
* config/tc-aarch64.c (md_begin): Set the ELF header flag
EF_AARCH64_CHERI_PURECAP if we have the C64 extension.
+2021-09-24 Alex Coplan <alex.coplan@arm.com>
+
+ * config/tc-aarch64.c (md_begin): Set the ELF header flag
+ EF_AARCH64_CHERI_PURECAP if we have the C64 extension.
+
2021-09-24 Alex Coplan <alex.coplan@arm.com>
* testsuite/gas/aarch64/morello_ldst-c64.d: Update following
mach = ilp32_p ? bfd_mach_aarch64_ilp32 : bfd_mach_aarch64;
bfd_set_arch_mach (stdoutput, TARGET_ARCH, mach);
+
+#ifdef OBJ_ELF
+ if (IS_C64)
+ bfd_set_private_flags (stdoutput, EF_AARCH64_CHERI_PURECAP);
+#endif
}
/* Command line processing. */