Back to index

cell-binutils  2.17cvs20070401
Defines | Functions
tc-m32c.h File Reference

Go to the source code of this file.

Defines

#define TC_M32C
#define LISTING_HEADER   "M16C/M32C GAS "
#define TARGET_ARCH   bfd_arch_m32c
#define TARGET_FORMAT   "elf32-m32c"
#define TARGET_BYTES_BIG_ENDIAN   1
#define md_end   m32c_md_end
#define md_start_line_hook   m32c_start_line_hook
#define MD_PCREL_FROM_SECTION(FIXP, SEC)   md_pcrel_from_section (FIXP, SEC)
#define LOCAL_LABELS_FB   1
#define DIFF_EXPR_OK   /* .-foo gets turned into PC relative relocs */
#define WORKING_DOT_WORD
#define md_apply_fix   m32c_apply_fix
#define tc_fix_adjustable(fixP)   m32c_fix_adjustable (fixP)
#define TC_FORCE_RELOCATION(fix)   m32c_force_relocation (fix)
#define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP)   m32c_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
#define TC_GENERIC_RELAX_TABLE   md_relax_table
#define md_prepare_relax_scan(FRAGP, ADDR, AIM, STATE, TYPE)   m32c_prepare_relax_scan(FRAGP, &AIM, STATE)
#define MD_APPLY_SYM_VALUE(FIX)   0
#define MD_PCREL_FROM_SECTION(FIXP, SEC)   md_pcrel_from_section (FIXP, SEC)
#define TC_START_LABEL(character, i_l_p)   ((character) != ':' ? 0 : (character = m32c_is_colon_insn (s)) ? 0 : ((character = ':'), 1))

Functions

void m32c_md_end (void)
void m32c_start_line_hook (void)
long md_pcrel_from_section PARAMS ((struct fix *, segT))
void m32c_apply_fix PARAMS ((struct fix *, valueT *, segT))
bfd_boolean m32c_fix_adjustable PARAMS ((struct fix *))
void m32c_cons_fix_new (fragS *, int, int, expressionS *)
void m32c_prepare_relax_scan PARAMS ((fragS *, offsetT *, relax_substateT state))
char m32c_is_colon_insn PARAMS ((char *))

Define Documentation

#define DIFF_EXPR_OK   /* .-foo gets turned into PC relative relocs */

Definition at line 45 of file tc-m32c.h.

#define LISTING_HEADER   "M16C/M32C GAS "

Definition at line 23 of file tc-m32c.h.

#define LOCAL_LABELS_FB   1

Definition at line 43 of file tc-m32c.h.

Definition at line 50 of file tc-m32c.h.

#define MD_APPLY_SYM_VALUE (   FIX)    0

Definition at line 72 of file tc-m32c.h.

#define md_end   m32c_md_end

Definition at line 32 of file tc-m32c.h.

#define MD_PCREL_FROM_SECTION (   FIXP,
  SEC 
)    md_pcrel_from_section (FIXP, SEC)

Definition at line 75 of file tc-m32c.h.

#define MD_PCREL_FROM_SECTION (   FIXP,
  SEC 
)    md_pcrel_from_section (FIXP, SEC)

Definition at line 75 of file tc-m32c.h.

#define md_prepare_relax_scan (   FRAGP,
  ADDR,
  AIM,
  STATE,
  TYPE 
)    m32c_prepare_relax_scan(FRAGP, &AIM, STATE)

Definition at line 68 of file tc-m32c.h.

Definition at line 35 of file tc-m32c.h.

#define TARGET_ARCH   bfd_arch_m32c

Definition at line 26 of file tc-m32c.h.

#define TARGET_BYTES_BIG_ENDIAN   1

Definition at line 30 of file tc-m32c.h.

#define TARGET_FORMAT   "elf32-m32c"

Definition at line 28 of file tc-m32c.h.

#define TC_CONS_FIX_NEW (   FRAG,
  WHERE,
  NBYTES,
  EXP 
)    m32c_cons_fix_new (FRAG, WHERE, NBYTES, EXP)

Definition at line 60 of file tc-m32c.h.

#define tc_fix_adjustable (   fixP)    m32c_fix_adjustable (fixP)

Definition at line 53 of file tc-m32c.h.

Definition at line 57 of file tc-m32c.h.

Definition at line 65 of file tc-m32c.h.

#define TC_M32C

Definition at line 21 of file tc-m32c.h.

#define TC_START_LABEL (   character,
  i_l_p 
)    ((character) != ':' ? 0 : (character = m32c_is_colon_insn (s)) ? 0 : ((character = ':'), 1))

Definition at line 86 of file tc-m32c.h.

Definition at line 48 of file tc-m32c.h.


Function Documentation

void m32c_cons_fix_new ( fragS *  ,
int  ,
int  ,
expressionS  
)

Definition at line 1068 of file tc-m32c.c.

{
  bfd_reloc_code_real_type type;

  switch (size)
    {
    case 1:
      type = BFD_RELOC_8;
      break;
    case 2:
      type = BFD_RELOC_16;
      break;
    case 3:
      type = BFD_RELOC_24;
      break;
    case 4:
    default:
      type = BFD_RELOC_32;
      break;
    case 8:
      type = BFD_RELOC_64;
      break;
    }

  fix_new_exp (frag, where, (int) size, exp, 0, type);
}

Here is the call graph for this function:

void m32c_md_end ( void  )

Definition at line 188 of file tc-m32c.c.

{
  int i, n_nops;

  if (bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE)
    {
      /* Pad with nops for objdump.  */
      n_nops = (32 - ((insn_size) % 32)) / 8;
      for (i = 1; i <= n_nops; i++)
       md_assemble ("nop");
    }
}

Here is the call graph for this function:

void m32c_start_line_hook ( void  )

Definition at line 202 of file tc-m32c.c.

{
#if 0 /* not necessary....handled in the .cpu file */
  char *s = input_line_pointer;
  char *sg;

  for (s = input_line_pointer ; s && s[0] != '\n'; s++)
    {
      if (s[0] == ':')
       {
         /* Remove :g suffix.  Squeeze out blanks.  */
         if (s[1] == 'g')
           {
             for (sg = s - 1; sg && sg >= input_line_pointer; sg--)
              {
                sg[2] = sg[0];
              }
             sg[1] = ' ';
             sg[2] = ' ';
             input_line_pointer += 2;
           }
       }
    }
#endif
}
void m32c_apply_fix PARAMS ( (struct fix *, valueT *, segT )
void m32c_prepare_relax_scan PARAMS ( (fragS *, offsetT *, relax_substateT state )
char m32c_is_colon_insn PARAMS ( (char *)  )