Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Enumerations | Functions
tc-score.h File Reference

Go to the source code of this file.

Classes

struct  score_tc_frag_data

Defines

#define TARGET_ARCH   bfd_arch_score
#define WORKING_DOT_WORD
#define DIFF_EXPR_OK
#define RELOC_EXPANSION_POSSIBLE
#define MAX_RELOC_EXPANSION   2
#define MAX_MEM_FOR_RS_ALIGN_CODE   (3 + 4)
#define md_undefined_symbol(name)   NULL
#define TARGET_FORMAT   (target_big_endian ? "elf32-bigscore" : "elf32-littlescore")
#define md_relax_frag(segment, fragp, stretch)   score_relax_frag (segment, fragp, stretch)
#define md_frag_check(fragp)   score_frag_check (fragp)
#define TC_VALIDATE_FIX(FIXP, SEGTYPE, SKIP)   score_validate_fix (FIXP)
#define TC_FORCE_RELOCATION(FIXP)   score_force_relocation (FIXP)
#define tc_fix_adjustable(fixp)   score_fix_adjustable (fixp)
#define elf_tc_final_processing   score_elf_final_processing
#define TC_FRAG_TYPE   struct score_tc_frag_data
#define TC_FRAG_INIT(FRAGP)
#define GLOBAL_OFFSET_TABLE_NAME   "__GLOBAL_OFFSET_TABLE_"

Enumerations

enum  score_pic_level { NO_PIC, PIC }

Functions

int score_relax_frag (asection *, struct frag *, long)
void score_frag_check (fragS *)
void score_validate_fix (struct fix *)
int score_force_relocation (struct fix *)
bfd_boolean score_fix_adjustable (struct fix *)
void score_elf_final_processing (void)

Class Documentation

struct score_tc_frag_data

Definition at line 56 of file tc-score.h.

Collaboration diagram for score_tc_frag_data:
Class Members
struct fix * fixp
unsigned int is_insn

Define Documentation

#define DIFF_EXPR_OK

Definition at line 29 of file tc-score.h.

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

#define GLOBAL_OFFSET_TABLE_NAME   "__GLOBAL_OFFSET_TABLE_"

Definition at line 74 of file tc-score.h.

#define MAX_MEM_FOR_RS_ALIGN_CODE   (3 + 4)

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

#define MAX_RELOC_EXPANSION   2

Definition at line 31 of file tc-score.h.

#define md_frag_check (   fragp)    score_frag_check (fragp)

Definition at line 41 of file tc-score.h.

#define md_relax_frag (   segment,
  fragp,
  stretch 
)    score_relax_frag (segment, fragp, stretch)

Definition at line 38 of file tc-score.h.

#define md_undefined_symbol (   name)    NULL

Definition at line 34 of file tc-score.h.

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

Definition at line 27 of file tc-score.h.

#define TARGET_FORMAT   (target_big_endian ? "elf32-bigscore" : "elf32-littlescore")

Definition at line 36 of file tc-score.h.

#define tc_fix_adjustable (   fixp)    score_fix_adjustable (fixp)

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

#define TC_FORCE_RELOCATION (   FIXP)    score_force_relocation (FIXP)

Definition at line 47 of file tc-score.h.

#define TC_FRAG_INIT (   FRAGP)
Value:
do \
    { \
      (FRAGP)->tc_frag_data.is_insn = (((FRAGP)->fr_type == rs_machine_dependent) ? 1 : 0); \
    } \
  while (0)

Definition at line 64 of file tc-score.h.

Definition at line 62 of file tc-score.h.

#define TC_VALIDATE_FIX (   FIXP,
  SEGTYPE,
  SKIP 
)    score_validate_fix (FIXP)

Definition at line 44 of file tc-score.h.

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


Enumeration Type Documentation

Enumerator:
NO_PIC 
PIC 

Definition at line 77 of file tc-score.h.

{
  NO_PIC,
  PIC
};

Function Documentation

void score_elf_final_processing ( void  )

Definition at line 5560 of file tc-score.c.

{
  if (fix_data_dependency == 1)
    {
      elf_elfheader (stdoutput)->e_flags |= EF_SCORE_FIXDEP;
    }
  if (score_pic == PIC)
    {
      elf_elfheader (stdoutput)->e_flags |= EF_SCORE_PIC;
    }
}

Definition at line 5208 of file tc-score.c.

{
  int retval = 0;

  if (fixp->fx_r_type == BFD_RELOC_VTABLE_INHERIT
      || fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY
      || fixp->fx_r_type == BFD_RELOC_SCORE_JMP
      || fixp->fx_r_type == BFD_RELOC_SCORE_BRANCH
      || fixp->fx_r_type == BFD_RELOC_SCORE16_JMP
      || fixp->fx_r_type == BFD_RELOC_SCORE16_BRANCH)
    {
      retval = 1;
    }

  return retval;
}
void score_frag_check ( fragS *  )
int score_relax_frag ( asection ,
struct frag ,
long   
)