aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2022-11-17 13:00:14 -0800
committerIndu Bhagat <indu.bhagat@oracle.com>2022-11-17 13:00:14 -0800
commit8c633762e3126d86e4920a1171b19977d1e4e37b (patch)
tree19c0eea905800a6ef889af6e908d711b50d65ea2 /gas
parentc83b95d88feed26eb04f7eca97c08e3ace0b7cbb (diff)
downloadgdb-8c633762e3126d86e4920a1171b19977d1e4e37b.zip
gdb-8c633762e3126d86e4920a1171b19977d1e4e37b.tar.gz
gdb-8c633762e3126d86e4920a1171b19977d1e4e37b.tar.bz2
[gas, aarch64]: fix build breakage for aarch64-pe
SFrame is supported for ELF only. Keep the definitions and declarations guarded with OBJ_ELF consistently. ChangeLog: * gas/config/tc-aarch64.h: Guard SFrame related definitions with OBJ_ELF.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-aarch64.h41
1 files changed, 22 insertions, 19 deletions
diff --git a/gas/config/tc-aarch64.h b/gas/config/tc-aarch64.h
index 91412ce..df73516 100644
--- a/gas/config/tc-aarch64.h
+++ b/gas/config/tc-aarch64.h
@@ -239,6 +239,27 @@ struct aarch64_segment_info_type
/* We want .cfi_* pseudo-ops for generating unwind info. */
#define TARGET_USE_CFIPOP 1
+/* CFI hooks. */
+#define tc_regname_to_dw2regnum tc_aarch64_regname_to_dw2regnum
+#define tc_cfi_frame_initial_instructions tc_aarch64_frame_initial_instructions
+
+extern void aarch64_after_parse_args (void);
+#define md_after_parse_args() aarch64_after_parse_args ()
+
+# define EXTERN_FORCE_RELOC 1
+# define tc_fix_adjustable(FIX) 1
+
+/* Values passed to md_apply_fix don't include the symbol value. */
+# define MD_APPLY_SYM_VALUE(FIX) 0
+
+#else /* Neither OBJ_ELF nor OBJ_COFF. */
+
+#define GLOBAL_OFFSET_TABLE_NAME "__GLOBAL_OFFSET_TABLE_"
+
+#endif /* OBJ_ELF || OBJ_COFF. */
+
+#ifdef OBJ_ELF
+
/* Whether SFrame unwind info is supported. */
extern bool aarch64_support_sframe_p (void);
#define support_sframe_p aarch64_support_sframe_p
@@ -268,25 +289,7 @@ extern offsetT aarch64_sframe_cfa_ra_offset (void);
unsigned char aarch64_sframe_get_abi_arch (void);
#define sframe_get_abi_arch aarch64_sframe_get_abi_arch
-/* CFI hooks. */
-#define tc_regname_to_dw2regnum tc_aarch64_regname_to_dw2regnum
-#define tc_cfi_frame_initial_instructions tc_aarch64_frame_initial_instructions
-
-extern void aarch64_after_parse_args (void);
-#define md_after_parse_args() aarch64_after_parse_args ()
-
-#else /* Not OBJ_ELF. */
-#define GLOBAL_OFFSET_TABLE_NAME "__GLOBAL_OFFSET_TABLE_"
-#endif
-
-#if defined OBJ_ELF || defined OBJ_COFF
-
-# define EXTERN_FORCE_RELOC 1
-# define tc_fix_adjustable(FIX) 1
-/* Values passed to md_apply_fix don't include the symbol value. */
-# define MD_APPLY_SYM_VALUE(FIX) 0
-
-#endif
+#endif /* OBJ_ELF */
#define MD_PCREL_FROM_SECTION(F,S) md_pcrel_from_section(F,S)