osprey/cygnus/bfd/coffcode.h File Reference

#include "coffswap.h"
#include "Your aouthdr magic number is not being set!"
#include "peicode.h"

Include dependency graph for coffcode.h:

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

Go to the source code of this file.

Defines

#define STRING_SIZE_SIZE   (4)
#define DOT_DEBUG   ".debug"
#define GNU_LINKONCE_WI   ".gnu.linkonce.wi."
#define STYP_XCOFF_DEBUG   STYP_INFO
#define STYP_DEBUG_INFO   STYP_INFO
#define get_index(symbol)   ((symbol)->udata.i)
#define coff_set_alignment_hook   ((void (*) PARAMS ((bfd *, asection *, PTR))) bfd_void)
#define symname_in_debug_hook   (bfd_boolean (*) PARAMS ((bfd *, struct internal_syment *))) bfd_false
#define coff_pointerize_aux_hook   0
#define ALIGN_SECTIONS_IN_FILE
#define CALC_ADDEND(abfd, ptr, reloc, cache_ptr)
#define coff_rtype_to_howto   NULL
#define coff_reloc16_estimate   dummy_reloc16_estimate
#define coff_reloc16_extra_cases   dummy_reloc16_extra_cases
#define coff_bfd_link_hash_table_free   _bfd_generic_link_hash_table_free
#define coff_relocate_section   NULL
#define coff_bfd_link_hash_table_create   _bfd_generic_link_hash_table_create
#define coff_bfd_link_add_symbols   _bfd_generic_link_add_symbols
#define coff_bfd_final_link   _bfd_generic_final_link
#define coff_bfd_link_just_syms   _bfd_generic_link_just_syms
#define coff_bfd_link_split_section   _bfd_generic_link_split_section
#define coff_start_final_link   NULL
#define coff_adjust_symndx   NULL
#define coff_link_add_one_symbol   _bfd_generic_link_add_one_symbol
#define coff_SWAP_aux_in   coff_swap_aux_in
#define coff_SWAP_sym_in   coff_swap_sym_in
#define coff_SWAP_lineno_in   coff_swap_lineno_in
#define coff_SWAP_aux_out   coff_swap_aux_out
#define coff_SWAP_sym_out   coff_swap_sym_out
#define coff_SWAP_lineno_out   coff_swap_lineno_out
#define coff_SWAP_reloc_out   coff_swap_reloc_out
#define coff_SWAP_filehdr_out   coff_swap_filehdr_out
#define coff_SWAP_aouthdr_out   coff_swap_aouthdr_out
#define coff_SWAP_scnhdr_out   coff_swap_scnhdr_out
#define coff_SWAP_reloc_in   coff_swap_reloc_in
#define coff_SWAP_filehdr_in   coff_swap_filehdr_in
#define coff_SWAP_aouthdr_in   coff_swap_aouthdr_in
#define coff_SWAP_scnhdr_in   coff_swap_scnhdr_in
#define coff_close_and_cleanup   _bfd_generic_close_and_cleanup
#define coff_bfd_free_cached_info   _bfd_generic_bfd_free_cached_info
#define coff_get_section_contents   _bfd_generic_get_section_contents
#define coff_bfd_copy_private_symbol_data   _bfd_generic_bfd_copy_private_symbol_data
#define coff_bfd_copy_private_header_data   _bfd_generic_bfd_copy_private_header_data
#define coff_bfd_copy_private_section_data   _bfd_generic_bfd_copy_private_section_data
#define coff_bfd_copy_private_bfd_data   _bfd_generic_bfd_copy_private_bfd_data
#define coff_bfd_merge_private_bfd_data   _bfd_generic_bfd_merge_private_bfd_data
#define coff_bfd_set_private_flags   _bfd_generic_bfd_set_private_flags
#define coff_bfd_print_private_bfd_data   _bfd_generic_bfd_print_private_bfd_data
#define coff_bfd_is_local_label_name   _bfd_coff_is_local_label_name
#define coff_bfd_is_target_special_symbol   ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
#define coff_read_minisymbols   _bfd_generic_read_minisymbols
#define coff_minisymbol_to_symbol   _bfd_generic_minisymbol_to_symbol
#define coff_bfd_reloc_type_lookup   _bfd_norelocs_bfd_reloc_type_lookup
#define coff_bfd_get_relocated_section_contents   bfd_generic_get_relocated_section_contents
#define coff_bfd_relax_section   bfd_generic_relax_section
#define coff_bfd_gc_sections   bfd_generic_gc_sections
#define coff_bfd_merge_sections   bfd_generic_merge_sections
#define coff_bfd_is_group_section   bfd_generic_is_group_section
#define coff_bfd_discard_group   bfd_generic_discard_group
#define coff_section_already_linked   _bfd_generic_section_already_linked
#define CREATE_BIG_COFF_TARGET_VEC(VAR, NAME, EXTRA_O_FLAGS, EXTRA_S_FLAGS, UNDER, ALTERNATIVE, SWAP_TABLE)
#define CREATE_BIGHDR_COFF_TARGET_VEC(VAR, NAME, EXTRA_O_FLAGS, EXTRA_S_FLAGS, UNDER, ALTERNATIVE, SWAP_TABLE)
#define CREATE_LITTLE_COFF_TARGET_VEC(VAR, NAME, EXTRA_O_FLAGS, EXTRA_S_FLAGS, UNDER, ALTERNATIVE, SWAP_TABLE)

Functions/Subroutines

static long sec_to_styp_flags PARAMS ((const char *, flagword))
static bfd_boolean
styp_to_sec_flags 
PARAMS ((bfd *, PTR, const char *, asection *, flagword *))
static bfd_boolean
coff_bad_format_hook 
PARAMS ((bfd *, PTR))
static void
coff_set_custom_section_alignment 
PARAMS ((bfd *, asection *, const struct coff_section_alignment_entry *, const unsigned int))
static bfd_boolean
coff_new_section_hook 
PARAMS ((bfd *, asection *))
static bfd_boolean
coff_write_relocs 
PARAMS ((bfd *, int))
static bfd_boolean coff_set_flags PARAMS ((bfd *, unsigned int *, unsigned short *))
static bfd_boolean
coff_set_arch_mach 
PARAMS ((bfd *, enum bfd_architecture, unsigned long)) ATTRIBUTE_UNUSED
static bfd_boolean
coff_compute_section_file_positions 
PARAMS ((bfd *))
static bfd_boolean
coff_set_section_contents 
PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type))
static PTR buy_and_read PARAMS ((bfd *, file_ptr, bfd_size_type))
static enum
coff_symbol_classification
coff_classify_symbol 
PARAMS ((bfd *, struct internal_syment *))
static bfd_boolean
coff_slurp_reloc_table 
PARAMS ((bfd *, asection *, asymbol **))
static long coff_canonicalize_reloc PARAMS ((bfd *, asection *, arelent **, asymbol **))
static PTR coff_mkobject_hook PARAMS ((bfd *, PTR, PTR))
static long sec_to_styp_flags (sec_name, sec_flags) const char *sec_name
static bfd_boolean coff_new_section_hook (abfd, section) bfd *abfd
static bfd_boolean coff_mkobject (abfd) bfd *abfd
static bfd_boolean coff_print_aux (abfd, file, table_base, symbol, aux, indaux) bfd *abfd ATTRIBUTE_UNUSED
static int dummy_reloc16_estimate (abfd, input_section, reloc, shrink, link_info) bfd *abfd ATTRIBUTE_UNUSED
static void dummy_reloc16_extra_cases (abfd, link_info, link_order, reloc, data, src_ptr, dst_ptr) bfd *abfd ATTRIBUTE_UNUSED
static bfd_boolean coff_link_output_has_begun (abfd, info) bfd *abfd
static bfd_boolean coff_final_link_postscript (abfd, pfinfo) bfd *abfd ATTRIBUTE_UNUSED

Variables

flagword sec_flags
PTR hdr
const char * name
asection *section ATTRIBUTE_UNUSED
flagwordflags_ptr
PTR filehdr
asectionsection
struct
coff_section_alignment_entry
alignment_table
const unsigned int table_size
static const unsigned int coff_section_alignment_table_size
int first_undef
enum bfd_architecture arch
unsigned long machine
const PTR location
file_ptr offset
bfd_size_type count
file_ptr where
bfd_size_type size
asectionasect
struct internal_symentsyment
asymbol ** symbols
arelent ** relptr


Define Documentation

#define ALIGN_SECTIONS_IN_FILE

#define CALC_ADDEND ( abfd,
ptr,
reloc,
cache_ptr   ) 

Value:

{                                                             \
    coff_symbol_type *coffsym = (coff_symbol_type *) NULL;      \
    if (ptr && bfd_asymbol_bfd (ptr) != abfd)                   \
      coffsym = (obj_symbols (abfd)                             \
                 + (cache_ptr->sym_ptr_ptr - symbols));         \
    else if (ptr)                                               \
      coffsym = coff_symbol_from (abfd, ptr);                   \
    if (coffsym != (coff_symbol_type *) NULL                    \
        && coffsym->native->u.syment.n_scnum == 0)              \
      cache_ptr->addend = 0;                                    \
    else if (ptr && bfd_asymbol_bfd (ptr) == abfd               \
             && ptr->section != (asection *) NULL)              \
      cache_ptr->addend = - (ptr->section->vma + ptr->value);   \
    else                                                        \
      cache_ptr->addend = 0;                                    \
  }

#define coff_adjust_symndx   NULL

#define coff_bfd_copy_private_bfd_data   _bfd_generic_bfd_copy_private_bfd_data

Definition at line 5447 of file coffcode.h.

#define coff_bfd_copy_private_header_data   _bfd_generic_bfd_copy_private_header_data

Definition at line 5439 of file coffcode.h.

#define coff_bfd_copy_private_section_data   _bfd_generic_bfd_copy_private_section_data

Definition at line 5443 of file coffcode.h.

#define coff_bfd_copy_private_symbol_data   _bfd_generic_bfd_copy_private_symbol_data

Definition at line 5435 of file coffcode.h.

#define coff_bfd_discard_group   bfd_generic_discard_group

Definition at line 5506 of file coffcode.h.

#define coff_bfd_final_link   _bfd_generic_final_link

#define coff_bfd_free_cached_info   _bfd_generic_bfd_free_cached_info

Definition at line 5427 of file coffcode.h.

#define coff_bfd_gc_sections   bfd_generic_gc_sections

Definition at line 5494 of file coffcode.h.

#define coff_bfd_get_relocated_section_contents   bfd_generic_get_relocated_section_contents

Definition at line 5485 of file coffcode.h.

#define coff_bfd_is_group_section   bfd_generic_is_group_section

Definition at line 5502 of file coffcode.h.

#define coff_bfd_is_local_label_name   _bfd_coff_is_local_label_name

Definition at line 5463 of file coffcode.h.

#define coff_bfd_is_target_special_symbol   ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)

Definition at line 5467 of file coffcode.h.

#define coff_bfd_link_add_symbols   _bfd_generic_link_add_symbols

#define coff_bfd_link_hash_table_create   _bfd_generic_link_hash_table_create

#define coff_bfd_link_hash_table_free   _bfd_generic_link_hash_table_free

#define coff_bfd_link_just_syms   _bfd_generic_link_just_syms

#define coff_bfd_link_split_section   _bfd_generic_link_split_section

#define coff_bfd_merge_private_bfd_data   _bfd_generic_bfd_merge_private_bfd_data

Definition at line 5451 of file coffcode.h.

#define coff_bfd_merge_sections   bfd_generic_merge_sections

Definition at line 5498 of file coffcode.h.

#define coff_bfd_print_private_bfd_data   _bfd_generic_bfd_print_private_bfd_data

Definition at line 5459 of file coffcode.h.

#define coff_bfd_relax_section   bfd_generic_relax_section

Definition at line 5490 of file coffcode.h.

#define coff_bfd_reloc_type_lookup   _bfd_norelocs_bfd_reloc_type_lookup

Definition at line 5481 of file coffcode.h.

#define coff_bfd_set_private_flags   _bfd_generic_bfd_set_private_flags

Definition at line 5455 of file coffcode.h.

#define coff_close_and_cleanup   _bfd_generic_close_and_cleanup

Definition at line 5423 of file coffcode.h.

#define coff_get_section_contents   _bfd_generic_get_section_contents

Definition at line 5431 of file coffcode.h.

#define coff_link_add_one_symbol   _bfd_generic_link_add_one_symbol

#define coff_minisymbol_to_symbol   _bfd_generic_minisymbol_to_symbol

Definition at line 5475 of file coffcode.h.

#define coff_pointerize_aux_hook   0

#define coff_read_minisymbols   _bfd_generic_read_minisymbols

Definition at line 5471 of file coffcode.h.

#define coff_reloc16_estimate   dummy_reloc16_estimate

#define coff_reloc16_extra_cases   dummy_reloc16_extra_cases

#define coff_relocate_section   NULL

#define coff_rtype_to_howto   NULL

#define coff_section_already_linked   _bfd_generic_section_already_linked

Definition at line 5510 of file coffcode.h.

#define coff_set_alignment_hook   ((void (*) PARAMS ((bfd *, asection *, PTR))) bfd_void)

#define coff_start_final_link   NULL

#define coff_SWAP_aouthdr_in   coff_swap_aouthdr_in

#define coff_SWAP_aouthdr_out   coff_swap_aouthdr_out

#define coff_SWAP_aux_in   coff_swap_aux_in

#define coff_SWAP_aux_out   coff_swap_aux_out

#define coff_SWAP_filehdr_in   coff_swap_filehdr_in

#define coff_SWAP_filehdr_out   coff_swap_filehdr_out

#define coff_SWAP_lineno_in   coff_swap_lineno_in

#define coff_SWAP_lineno_out   coff_swap_lineno_out

#define coff_SWAP_reloc_in   coff_swap_reloc_in

#define coff_SWAP_reloc_out   coff_swap_reloc_out

#define coff_SWAP_scnhdr_in   coff_swap_scnhdr_in

#define coff_SWAP_scnhdr_out   coff_swap_scnhdr_out

#define coff_SWAP_sym_in   coff_swap_sym_in

#define coff_SWAP_sym_out   coff_swap_sym_out

#define CREATE_BIG_COFF_TARGET_VEC ( VAR,
NAME,
EXTRA_O_FLAGS,
EXTRA_S_FLAGS,
UNDER,
ALTERNATIVE,
SWAP_TABLE   ) 

Definition at line 5514 of file coffcode.h.

#define CREATE_BIGHDR_COFF_TARGET_VEC ( VAR,
NAME,
EXTRA_O_FLAGS,
EXTRA_S_FLAGS,
UNDER,
ALTERNATIVE,
SWAP_TABLE   ) 

Definition at line 5564 of file coffcode.h.

#define CREATE_LITTLE_COFF_TARGET_VEC ( VAR,
NAME,
EXTRA_O_FLAGS,
EXTRA_S_FLAGS,
UNDER,
ALTERNATIVE,
SWAP_TABLE   ) 

Definition at line 5614 of file coffcode.h.

#define DOT_DEBUG   ".debug"

Definition at line 316 of file coffcode.h.

#define get_index ( symbol   )     ((symbol)->udata.i)

#define GNU_LINKONCE_WI   ".gnu.linkonce.wi."

Definition at line 317 of file coffcode.h.

#define STRING_SIZE_SIZE   (4)

#define STYP_DEBUG_INFO   STYP_INFO

Definition at line 398 of file coffcode.h.

#define STYP_XCOFF_DEBUG   STYP_INFO

Definition at line 392 of file coffcode.h.

#define symname_in_debug_hook   (bfd_boolean (*) PARAMS ((bfd *, struct internal_syment *))) bfd_false


Function Documentation

static bfd_boolean coff_final_link_postscript ( abfd  ,
pfinfo   
) [static]

static bfd_boolean coff_link_output_has_begun ( abfd  ,
info   
) [static]

static bfd_boolean coff_mkobject ( abfd   )  [static]

static bfd_boolean coff_new_section_hook ( abfd  ,
section   
) [static]

static bfd_boolean coff_print_aux ( abfd  ,
file  ,
table_base  ,
symbol  ,
aux  ,
indaux   
) [static]

static int dummy_reloc16_estimate ( abfd  ,
input_section  ,
reloc  ,
shrink  ,
link_info   
) [static]

static void dummy_reloc16_extra_cases ( abfd  ,
link_info  ,
link_order  ,
reloc  ,
data  ,
src_ptr  ,
dst_ptr   
) [static]

static PTR coff_mkobject_hook PARAMS ( (bfd *, PTR, PTR  )  [static]

static long coff_canonicalize_reloc PARAMS ( (bfd *, asection *, arelent **, asymbol **)   )  [static]

static bfd_boolean coff_slurp_reloc_table PARAMS ( (bfd *, asection *, asymbol **)   )  [static]

static enum coff_symbol_classification coff_classify_symbol PARAMS ( (bfd *, struct internal_syment *)   )  [static]

static PTR buy_and_read PARAMS ( (bfd *, file_ptr, bfd_size_type  )  [static]

static bfd_boolean coff_set_section_contents PARAMS ( (bfd *, asection *, const PTR, file_ptr, bfd_size_type  )  [static]

static bfd_boolean coff_compute_section_file_positions PARAMS ( (bfd *)   )  [static]

static bfd_boolean coff_set_arch_mach PARAMS ( (bfd *, enum bfd_architecture, unsigned long  )  [static]

static bfd_boolean coff_set_flags PARAMS ( (bfd *, unsigned int *, unsigned short *)   )  [static]

static bfd_boolean coff_write_relocs PARAMS ( (bfd *, int)   )  [static]

static bfd_boolean coff_new_section_hook PARAMS ( (bfd *, asection *)   )  [static]

static void coff_set_custom_section_alignment PARAMS ( (bfd *, asection *, const struct coff_section_alignment_entry *, const unsigned int)   )  [static]

static bfd_boolean coff_bad_format_hook PARAMS ( (bfd *, PTR  )  [static]

static bfd_boolean styp_to_sec_flags PARAMS ( (bfd *, PTR, const char *, asection *, flagword *)   )  [static]

static long sec_to_styp_flags PARAMS ( (const char *, flagword  )  [static]

static long sec_to_styp_flags ( sec_name  ,
sec_flags   
) const [static]


Variable Documentation

Definition at line 1508 of file coffcode.h.

Definition at line 2968 of file coffcode.h.

Definition at line 4365 of file coffcode.h.

Definition at line 606 of file coffcode.h.

const unsigned int coff_section_alignment_table_size [static]

Initial value:

  sizeof coff_section_alignment_table / sizeof coff_section_alignment_table[0]

Definition at line 1562 of file coffcode.h.

Definition at line 4262 of file coffcode.h.

Definition at line 1447 of file coffcode.h.

Referenced by coff_object_p().

Definition at line 2488 of file coffcode.h.

Definition at line 607 of file coffcode.h.

Definition at line 603 of file coffcode.h.

const PTR location

Definition at line 4260 of file coffcode.h.

unsigned long machine

Definition at line 2969 of file coffcode.h.

const char* name

Definition at line 605 of file coffcode.h.

Definition at line 4261 of file coffcode.h.

Definition at line 5104 of file coffcode.h.

Definition at line 404 of file coffcode.h.

Referenced by _bfd_ecoff_styp_to_sec_flags(), and lang_memory_default().

Definition at line 1506 of file coffcode.h.

Definition at line 4328 of file coffcode.h.

Definition at line 4967 of file coffcode.h.

Definition at line 4822 of file coffcode.h.

const unsigned int table_size


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