aboutsummaryrefslogtreecommitdiff
path: root/gas/dw2gencfi.h
diff options
context:
space:
mode:
authorSam Tebbs <sam.tebbs@arm.com>2018-12-13 16:27:01 +0000
committerThomas Preud'homme <thomas.preudhomme@linaro.org>2018-12-13 16:37:40 +0000
commit09038062534606ef9100b5474d136f7d2e543de4 (patch)
tree71b88ac39f8eee0495e68f742a8dfc4deefcfcc4 /gas/dw2gencfi.h
parentfe554d200d1befdc3bddc9e14f8593ea3446c351 (diff)
downloadgdb-09038062534606ef9100b5474d136f7d2e543de4.zip
gdb-09038062534606ef9100b5474d136f7d2e543de4.tar.gz
gdb-09038062534606ef9100b5474d136f7d2e543de4.tar.bz2
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 <sam.tebbs@arm.com> 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
Diffstat (limited to 'gas/dw2gencfi.h')
-rw-r--r--gas/dw2gencfi.h10
1 files changed, 3 insertions, 7 deletions
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. */