osprey/cygnus/bfd/coff-mcore.c File Reference

#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"
#include "coff/mcore.h"
#include "coff/internal.h"
#include "coff/pe.h"
#include "libcoff.h"
#include "coffcode.h"

Include dependency graph for coff-mcore.c:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

type  coff_mcore_link_hash_table

Defines

#define BADMAG(x)   MCOREBADMAG(x)
#define NUM_ELEM(A)   (sizeof (A) / sizeof (A)[0])
#define TOC_LOAD_ADJUSTMENT   (-32768)
#define TOC_SECTION_NAME   ".private.toc"
#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER   2
#define MINUS_ONE   (((bfd_vma)0) - 1)
#define coff_mcore_hash_table(info)   ((mcore_hash_table *) ((info)->hash))
#define HOW2MAP(bfd_rtype, mcore_rtype)   case bfd_rtype: return & mcore_coff_howto_table [mcore_rtype]
#define RTYPE2HOWTO(cache_ptr, dst)   (cache_ptr)->howto = mcore_coff_howto_table + (dst)->r_type;
#define coff_bfd_reloc_type_lookup   mcore_coff_reloc_type_lookup
#define coff_relocate_section   coff_mcore_relocate_section
#define coff_rtype_to_howto   coff_mcore_rtype_to_howto
#define SELECT_RELOC(internal, howto)   {internal.r_type = howto->type;}
#define SWAP_IN_RELOC_OFFSET   H_GET_32
#define SWAP_OUT_RELOC_OFFSET   H_PUT_32
#define COFF_PAGE_SIZE   0x1000

Typedefs

typedef struct
coff_mcore_link_hash_table 
mcore_hash_table

Functions/Subroutines

bfd_boolean
mcore_bfd_coff_final_link 
PARAMS ((bfd *, struct bfd_link_info *))
static bfd_reloc_status_type
mcore_coff_unsupported_reloc 
PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **))
static bfd_boolean
coff_mcore_relocate_section 
PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, struct internal_reloc *, struct internal_syment *, asection **))
static reloc_howto_type
*mcore_coff_reloc_type_lookup 
PARAMS ((bfd *, bfd_reloc_code_real_type))
static reloc_howto_type
*coff_mcore_rtype_to_howto 
PARAMS ((bfd *, asection *, struct internal_reloc *, struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *))
static void
mcore_emit_base_file_entry 
PARAMS ((struct bfd_link_info *, bfd *, asection *, bfd_vma))
static bfd_boolean in_reloc_p PARAMS ((bfd *, reloc_howto_type *))
static void mcore_emit_base_file_entry (struct bfd_link_info *info, bfd *output_bfd, asection *input_section, bfd_vma reloc_offset)
static bfd_reloc_status_type mcore_coff_unsupported_reloc (bfd *abfd, arelent *reloc_entry, symbol, data, input_section, output_bfd, error_message)
static reloc_howto_typemcore_coff_reloc_type_lookup (abfd, bfd_reloc_code_real_type code)
static reloc_howto_typecoff_mcore_rtype_to_howto (abfd, asection *sec, struct internal_reloc *rel, h, struct internal_syment *sym, bfd_vma *addendp)
static bfd_boolean in_reloc_p (abfd, reloc_howto_type *howto)
static bfd_boolean coff_mcore_relocate_section (bfd *output_bfd, struct bfd_link_info *info, bfd *input_bfd, asection *input_section, bfd_byte *contents, struct internal_reloc *relocs, struct internal_syment *syms, asection **sections)
 CREATE_BIG_COFF_TARGET_VEC (TARGET_BIG_SYM, TARGET_BIG_NAME, D_PAGED,(SEC_CODE|SEC_DATA|SEC_DEBUGGING|SEC_READONLY|SEC_LINK_ONCE|SEC_LINK_DUPLICATES), 0,&TARGET_LITTLE_SYM, COFF_SWAP_TABLE) CREATE_LITTLE_COFF_TARGET_VEC(TARGET_LITTLE_SYM

Variables

static reloc_howto_type mcore_coff_howto_table []
const bfd_target TARGET_LITTLE_SYM
 TARGET_LITTLE_NAME
 D_PAGED
SEC_CODE SEC_DATA
SEC_DEBUGGING SEC_READONLY
SEC_LINK_ONCE 
SEC_LINK_DUPLICATES
SEC_CODE SEC_DATA
SEC_DEBUGGING SEC_READONLY
SEC_LINK_ONCE & 
TARGET_BIG_SYM


Define Documentation

#define BADMAG (  )     MCOREBADMAG(x)

Definition at line 37 of file coff-mcore.c.

#define coff_bfd_reloc_type_lookup   mcore_coff_reloc_type_lookup

Definition at line 544 of file coff-mcore.c.

#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER   2

Definition at line 69 of file coff-mcore.c.

#define coff_mcore_hash_table ( info   )     ((mcore_hash_table *) ((info)->hash))

Definition at line 222 of file coff-mcore.c.

#define COFF_PAGE_SIZE   0x1000

Definition at line 555 of file coff-mcore.c.

#define coff_relocate_section   coff_mcore_relocate_section

Definition at line 545 of file coff-mcore.c.

#define coff_rtype_to_howto   coff_mcore_rtype_to_howto

Definition at line 546 of file coff-mcore.c.

#define HOW2MAP ( bfd_rtype,
mcore_rtype   )     case bfd_rtype: return & mcore_coff_howto_table [mcore_rtype]

Definition at line 268 of file coff-mcore.c.

Referenced by mcore_coff_reloc_type_lookup(), and ppc_coff_reloc_type_lookup().

#define MINUS_ONE   (((bfd_vma)0) - 1)

Definition at line 73 of file coff-mcore.c.

#define NUM_ELEM ( A   )     (sizeof (A) / sizeof (A)[0])

Definition at line 40 of file coff-mcore.c.

#define RTYPE2HOWTO ( cache_ptr,
dst   )     (cache_ptr)->howto = mcore_coff_howto_table + (dst)->r_type;

Definition at line 293 of file coff-mcore.c.

#define SELECT_RELOC ( internal,
howto   )     {internal.r_type = howto->type;}

Definition at line 548 of file coff-mcore.c.

#define SWAP_IN_RELOC_OFFSET   H_GET_32

Definition at line 552 of file coff-mcore.c.

#define SWAP_OUT_RELOC_OFFSET   H_PUT_32

Definition at line 553 of file coff-mcore.c.

#define TOC_LOAD_ADJUSTMENT   (-32768)

Definition at line 65 of file coff-mcore.c.

Referenced by coff_ppc_relocate_section().

#define TOC_SECTION_NAME   ".private.toc"

Definition at line 66 of file coff-mcore.c.

Referenced by coff_ppc_relocate_section().


Typedef Documentation


Function Documentation

static bfd_boolean coff_mcore_relocate_section ( bfd output_bfd,
struct bfd_link_info info,
bfd input_bfd,
asection input_section,
bfd_byte contents,
struct internal_reloc relocs,
struct internal_syment syms,
asection **  sections 
) [static]

static reloc_howto_type* coff_mcore_rtype_to_howto ( abfd  ,
asection sec,
struct internal_reloc rel,
h  ,
struct internal_syment sym,
bfd_vma addendp 
) [static]

CREATE_BIG_COFF_TARGET_VEC ( TARGET_BIG_SYM  ,
TARGET_BIG_NAME  ,
D_PAGED  ,
(SEC_CODE|SEC_DATA|SEC_DEBUGGING|SEC_READONLY|SEC_LINK_ONCE|SEC_LINK_DUPLICATES ,
,
TARGET_LITTLE_SYM,
COFF_SWAP_TABLE   
)

static bfd_boolean in_reloc_p ( abfd  ,
reloc_howto_type howto 
) [static]

static reloc_howto_type* mcore_coff_reloc_type_lookup ( abfd  ,
bfd_reloc_code_real_type  code 
) [static]

static bfd_reloc_status_type mcore_coff_unsupported_reloc ( bfd abfd,
arelent reloc_entry,
symbol  ,
data  ,
input_section  ,
output_bfd  ,
error_message   
) [static]

static void mcore_emit_base_file_entry ( struct bfd_link_info info,
bfd output_bfd,
asection input_section,
bfd_vma  reloc_offset 
) [static]

static bfd_boolean in_reloc_p PARAMS ( (bfd *, reloc_howto_type *)   )  [static]

static void mcore_emit_base_file_entry PARAMS ( (struct bfd_link_info *, bfd *, asection *, bfd_vma  )  [static]

static reloc_howto_type* coff_mcore_rtype_to_howto PARAMS ( (bfd *, asection *, struct internal_reloc *, struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *)   )  [static]

static reloc_howto_type* mcore_coff_reloc_type_lookup PARAMS ( (bfd *, bfd_reloc_code_real_type  )  [static]

static bfd_boolean coff_mcore_relocate_section PARAMS ( (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, struct internal_reloc *, struct internal_syment *, asection **)   )  [static]

static bfd_reloc_status_type mcore_coff_unsupported_reloc PARAMS ( (bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **)   )  [static]

bfd_boolean mcore_bfd_coff_final_link PARAMS ( (bfd *, struct bfd_link_info *)   ) 


Variable Documentation

Definition at line 566 of file coff-mcore.c.

Definition at line 75 of file coff-mcore.c.

SEC_CODE SEC_DATA SEC_DEBUGGING SEC_READONLY SEC_LINK_ONCE SEC_LINK_DUPLICATES

Definition at line 566 of file coff-mcore.c.

SEC_CODE SEC_DATA SEC_DEBUGGING SEC_READONLY SEC_LINK_ONCE & TARGET_BIG_SYM

Definition at line 566 of file coff-mcore.c.

Definition at line 566 of file coff-mcore.c.


Generated on Wed Apr 8 14:46:58 2009 for Open64 by  doxygen 1.5.6