Back to index

cell-binutils  2.17cvs20070401
tc-m68hc11.h
Go to the documentation of this file.
00001 /* tc-m68hc11.h -- Header file for tc-m68hc11.c.
00002    Copyright 1999, 2000, 2001, 2002, 2003, 2005
00003    Free Software Foundation, Inc.
00004 
00005    This file is part of GAS, the GNU Assembler.
00006 
00007    GAS is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2, or (at your option)
00010    any later version.
00011 
00012    GAS is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with GAS; see the file COPYING.  If not, write to the Free
00019    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00020    02110-1301, USA.  */
00021 
00022 #define TC_M68HC11
00023 #define TC_M68HC12
00024 
00025 struct fix;
00026 
00027 /* Define TC_M68K so that we can use the MRI mode.  */
00028 #define TC_M68K
00029 
00030 #define TARGET_BYTES_BIG_ENDIAN 1
00031 
00032 /* Motorola assembler specs does not require '.' before pseudo-ops.  */
00033 #define NO_PSEUDO_DOT 1
00034 
00035 /* The target BFD architecture.  */
00036 #define TARGET_ARCH (m68hc11_arch ())
00037 extern enum bfd_architecture m68hc11_arch (void);
00038 
00039 #define TARGET_MACH (m68hc11_mach ())
00040 extern int m68hc11_mach (void);
00041 
00042 #define TARGET_FORMAT (m68hc11_arch_format ())
00043 extern const char *m68hc11_arch_format (void);
00044 
00045 #define LISTING_WORD_SIZE 1 /* A word is 1 bytes */
00046 #define LISTING_LHS_WIDTH 4 /* One word on the first line */
00047 #define LISTING_LHS_WIDTH_SECOND 4 /* One word on the second line */
00048 #define LISTING_LHS_CONT_LINES 4   /* And 4 lines max */
00049 #define LISTING_HEADER m68hc11_listing_header ()
00050 extern const char *m68hc11_listing_header (void);
00051 
00052 /* Permit temporary numeric labels.  */
00053 #define LOCAL_LABELS_FB 1
00054 
00055 #define tc_init_after_args m68hc11_init_after_args
00056 extern void m68hc11_init_after_args (void);
00057 
00058 #define md_parse_long_option m68hc11_parse_long_option
00059 extern int m68hc11_parse_long_option (char *);
00060 
00061 #define DWARF2_LINE_MIN_INSN_LENGTH 1
00062 
00063 /* Use 32-bit address to represent a symbol address so that we can
00064    represent them with their page number.  */
00065 #define DWARF2_ADDR_SIZE(bfd) 4
00066 
00067 /* We don't need to handle .word strangely.  */
00068 #define WORKING_DOT_WORD
00069 
00070 #define md_number_to_chars           number_to_chars_bigendian
00071 
00072 /* Relax table to translate short relative branches (-128..127) into
00073    absolute branches.  */
00074 #define TC_GENERIC_RELAX_TABLE md_relax_table
00075 extern struct relax_type md_relax_table[];
00076 
00077 /* GAS only handles relaxations for pc-relative data targeting addresses
00078    in the same segment, so we have to handle the rest on our own.  */
00079 #define md_relax_frag(SEG, FRAGP, STRETCH)              \
00080  ((FRAGP)->fr_symbol != NULL                            \
00081   && S_GET_SEGMENT ((FRAGP)->fr_symbol) == (SEG) \
00082   ? relax_frag (SEG, FRAGP, STRETCH)                    \
00083   : m68hc11_relax_frag (SEG, FRAGP, STRETCH))
00084 extern long m68hc11_relax_frag (segT, fragS*, long);
00085 
00086 #define TC_HANDLES_FX_DONE
00087 
00088 #define DIFF_EXPR_OK        /* .-foo gets turned into PC relative relocs */
00089 
00090 /* Values passed to md_apply_fix don't include the symbol value.  */
00091 #define MD_APPLY_SYM_VALUE(FIX) 0
00092 
00093 /* No shared lib support, so we don't need to ensure externally
00094    visible symbols can be overridden.  */
00095 #define EXTERN_FORCE_RELOC 0
00096 
00097 #define TC_FORCE_RELOCATION(fix) tc_m68hc11_force_relocation (fix)
00098 extern int tc_m68hc11_force_relocation (struct fix *);
00099 
00100 #define tc_fix_adjustable(X) tc_m68hc11_fix_adjustable(X)
00101 extern int tc_m68hc11_fix_adjustable (struct fix *);
00102 
00103 #define md_operand(x)
00104 
00105 #define elf_tc_final_processing    m68hc11_elf_final_processing
00106 extern void m68hc11_elf_final_processing (void);
00107 
00108 #define tc_print_statistics(FILE) m68hc11_print_statistics (FILE)
00109 extern void m68hc11_print_statistics (FILE *);