summaryrefslogtreecommitdiff
path: root/gas/cgen.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-09-08 16:07:11 +0000
committerNick Clifton <nickc@redhat.com>2011-09-08 16:07:11 +0000
commit32425e36f373b8a861fd90851ab76700bd5b6f92 (patch)
treec8e0ae8fb069e559d4e394ae79f064a797963efa /gas/cgen.h
parent103ae312ba3c0b864851454b34a2104eff3370ad (diff)
downloadbinutils-gdb-32425e36f373b8a861fd90851ab76700bd5b6f92.tar.gz
* cgen.c (gas_cgen_pcrel_r_type): New function.
(gas_cgen_tc_gen_reloc): Check for GAS_CGEN_PCREL_R_TYPE. * cgen.h (gas_cgen_pcrel_r_type): Declare.
Diffstat (limited to 'gas/cgen.h')
-rw-r--r--gas/cgen.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/gas/cgen.h b/gas/cgen.h
index 1787615f814..847e042dfca 100644
--- a/gas/cgen.h
+++ b/gas/cgen.h
@@ -1,5 +1,5 @@
/* GAS cgen support.
- Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2011
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -32,8 +32,9 @@ extern CGEN_CPU_DESC gas_cgen_cpu_desc;
#endif
/* Struct defining result of gas_cgen_finish_insn. */
-typedef struct {
- /* frag containing the insn */
+typedef struct
+{
+ /* Frag containing the insn */
fragS * frag;
/* Address of insn in frag. */
char * addr;
@@ -80,10 +81,12 @@ extern fixS * gas_cgen_record_fixup_exp (fragS *, int, const CGEN_INSN *,
int, const CGEN_OPERAND *, int,
expressionS *);
-/* md_apply_fix handler */
+extern bfd_reloc_code_real_type gas_cgen_pcrel_r_type (bfd_reloc_code_real_type);
+
+/* md_apply_fix handler. */
extern void gas_cgen_md_apply_fix (fixS *, valueT *, segT);
-/* tc_gen_reloc handler */
+/* tc_gen_reloc handler. */
extern arelent *gas_cgen_tc_gen_reloc (asection *, fixS *);
/* Target supplied routine to lookup a reloc. */