From 09038062534606ef9100b5474d136f7d2e543de4 Mon Sep 17 00:00:00 2001 From: Sam Tebbs Date: Thu, 13 Dec 2018 16:27:01 +0000 Subject: Move aarch64 CIE code to aarch64 backend This commit moves all aarch64-specific code to deal with CIE structure introduced in 3a67e1a6b4430374f3073e51bb19347d4c421cfe from target-independent files to the aarch64 backend. 2018-12-13 Sam Tebbs binutils/ * dwarf.c (read_cie): Add check for 'B'. gas/ * config/tc-aarch64.h (enum pointer_auth_key, tc_fde_entry_extras, tc_cie_entry_extras, tc_fde_entry_init_extra, tc_output_cie_extra, tc_cie_fde_equivalent_extra, tc_cie_entry_init_extra): Define. * dw2gencfi.c (struct cie_entry): Add tc_cie_entry_extras invocation. (alloc_fde_entry, select_cie_for_fde): Add tc_fde_entry_init_extra invocation. (output_cie): Add tc_output_cie_extra invocation. (select_cie_for_fde): Add tc_cie_fde_equivalent_extra invocation. * dw2gencfi.h (enum pointer_auth_key): Move to config/tc-aarch64.h. (struct fde_entry): Add tc_fde_entry_extras invocation --- gas/dw2gencfi.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'gas/dw2gencfi.h') diff --git a/gas/dw2gencfi.h b/gas/dw2gencfi.h index 2b1362a..308032f 100644 --- a/gas/dw2gencfi.h +++ b/gas/dw2gencfi.h @@ -135,11 +135,6 @@ enum { EH_COMPACT_HAS_LSDA }; -enum pointer_auth_key { - AARCH64_PAUTH_KEY_A, - AARCH64_PAUTH_KEY_B -}; - /* Stack of old CFI data, for save/restore. */ struct cfa_save_data { @@ -183,8 +178,9 @@ struct fde_entry /* For out of line tables and FDEs. */ symbolS *eh_loc; int sections; - /* The pointer authentication key used. Only used for AArch64. */ - enum pointer_auth_key pauth_key; +#ifdef tc_fde_entry_extras + tc_fde_entry_extras +#endif }; /* The list of all FDEs that have been collected. */ -- cgit v1.1