Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Typedefs | Enumerations | Functions | Variables
libaout.h File Reference
#include "bfdlink.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  aout_link_hash_entry
struct  aout_backend_data
struct  internal_exec
struct  aout_symbol
struct  aoutdata
struct  aout_data_struct
struct  aout_section_data_struct

Defines

#define H_PUT_64   bfd_h_put_64
#define H_PUT_32   bfd_h_put_32
#define H_PUT_16   bfd_h_put_16
#define H_PUT_8   bfd_h_put_8
#define H_PUT_S64   bfd_h_put_signed_64
#define H_PUT_S32   bfd_h_put_signed_32
#define H_PUT_S16   bfd_h_put_signed_16
#define H_PUT_S8   bfd_h_put_signed_8
#define H_GET_64   bfd_h_get_64
#define H_GET_32   bfd_h_get_32
#define H_GET_16   bfd_h_get_16
#define H_GET_8   bfd_h_get_8
#define H_GET_S64   bfd_h_get_signed_64
#define H_GET_S32   bfd_h_get_signed_32
#define H_GET_S16   bfd_h_get_signed_16
#define H_GET_S8   bfd_h_get_signed_8
#define GET_WORD   H_GET_32
#define GET_SWORD   H_GET_S32
#define GET_MAGIC   H_GET_32
#define PUT_WORD   H_PUT_32
#define PUT_MAGIC   H_PUT_32
#define NAME(x, y)   CONCAT3 (x,_32_,y)
#define JNAME(x)   CONCAT2 (x,_32)
#define BYTES_IN_WORD   4
#define aout_link_hash_lookup(table, string, create, copy, follow)
#define aout_link_hash_traverse(table, func, info)
#define aout_hash_table(p)   ((struct aout_link_hash_table *) ((p)->hash))
#define aout_backend_info(abfd)   ((const struct aout_backend_data *)((abfd)->xvec->backend_data))
#define N_DYNAMIC(exec)   ((exec).a_info & 0x80000000)
#define N_MAGIC(exec)   ((exec).a_info & 0xffff)
#define N_MACHTYPE(exec)   ((enum machine_type)(((exec).a_info >> 16) & 0xff))
#define N_FLAGS(exec)   (((exec).a_info >> 24) & 0xff)
#define N_SET_INFO(exec, magic, type, flags)
#define N_SET_DYNAMIC(exec, dynamic)
#define N_SET_MAGIC(exec, magic)   ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff)))
#define N_SET_MACHTYPE(exec, machtype)
#define N_SET_FLAGS(exec, flags)
#define adata(bfd)   ((bfd)->tdata.aout_data->a)
#define exec_hdr(bfd)   (adata (bfd).hdr)
#define obj_aout_symbols(bfd)   (adata (bfd).symbols)
#define obj_textsec(bfd)   (adata (bfd).textsec)
#define obj_datasec(bfd)   (adata (bfd).datasec)
#define obj_bsssec(bfd)   (adata (bfd).bsssec)
#define obj_sym_filepos(bfd)   (adata (bfd).sym_filepos)
#define obj_str_filepos(bfd)   (adata (bfd).str_filepos)
#define obj_reloc_entry_size(bfd)   (adata (bfd).reloc_entry_size)
#define obj_symbol_entry_size(bfd)   (adata (bfd).symbol_entry_size)
#define obj_aout_subformat(bfd)   (adata (bfd).subformat)
#define obj_aout_external_syms(bfd)   (adata (bfd).external_syms)
#define obj_aout_external_sym_count(bfd)   (adata (bfd).external_sym_count)
#define obj_aout_sym_window(bfd)   (adata (bfd).sym_window)
#define obj_aout_external_strings(bfd)   (adata (bfd).external_strings)
#define obj_aout_external_string_size(bfd)   (adata (bfd).external_string_size)
#define obj_aout_string_window(bfd)   (adata (bfd).string_window)
#define obj_aout_sym_hashes(bfd)   (adata (bfd).sym_hashes)
#define obj_aout_dynamic_info(bfd)   (adata (bfd).dynamic_info)
#define aout_symbol(asymbol)   ((aout_symbol_type *)(&(asymbol)->the_bfd))
#define aout_section_data(s)   ((struct aout_section_data_struct *) (s)->used_by_bfd)
#define set_aout_section_data(s, v)   ((s)->used_by_bfd = (void *)&(v)->relocs)
#define aout_32_find_inliner_info   _bfd_nosymbols_find_inliner_info
#define aout_16_get_section_contents   _bfd_generic_get_section_contents
#define aout_32_get_section_contents   _bfd_generic_get_section_contents
#define aout_64_get_section_contents   _bfd_generic_get_section_contents
#define NO_WRITE_HEADER_KLUDGE   0
#define aout_32_bfd_is_local_label_name   bfd_generic_is_local_label_name
#define aout_32_bfd_is_target_special_symbol   ((bfd_boolean (*) (bfd *, asymbol *)) bfd_false)
#define WRITE_HEADERS(abfd, execp)
#define aout_section_merge_with_text_p(abfd, sec)

Typedefs

typedef struct aout_symbol aout_symbol_type

Enumerations

enum  machine_type {
  M_UNKNOWN = 0, M_68010 = 1, M_68020 = 2, M_SPARC = 3,
  M_NS32032 = (64), M_NS32532 = (64 + 5), M_386 = 100, M_29K = 101,
  M_386_DYNIX = 102, M_ARM = 103, M_SPARCLET = 131, M_386_NETBSD = 134,
  M_68K_NETBSD = 135, M_68K4K_NETBSD = 136, M_532_NETBSD = 137, M_SPARC_NETBSD = 138,
  M_PMAX_NETBSD = 139, M_VAX_NETBSD = 140, M_ALPHA_NETBSD = 141, M_ARM6_NETBSD = 143,
  M_SPARCLET_1 = 147, M_POWERPC_NETBSD = 149, M_VAX4K_NETBSD = 150, M_MIPS1 = 151,
  M_MIPS2 = 152, M_88K_OPENBSD = 153, M_HPPA_OPENBSD = 154, M_SPARC64_NETBSD = 156,
  M_X86_64_NETBSD = 157, M_SPARCLET_2 = 163, M_SPARCLET_3 = 179, M_SPARCLET_4 = 195,
  M_HP200 = 200, M_HP300 = (300 % 256), M_HPUX = (0x20c % 256), M_SPARCLET_5 = 211,
  M_SPARCLET_6 = 227, M_SPARCLITE_LE = 243, M_CRIS = 255, M_UNKNOWN = 0,
  M_68010 = 1, M_68020 = 2, M_SPARC = 3, M_386 = 100,
  M_29K = 101, M_RS6000 = 102, M_VAX4K_NETBSD = 150, M_HP200 = 200,
  M_HP300 = 300, M_HPUX23 = 0x020C
}

Functions

bfd_boolean NAME (aout, squirt_out_relocs)(bfd *
bfd_boolean asection *bfd_boolean NAME (aout, make_sections)(bfd *)
const bfd_targetNAME (aout, some_aout_object_p)(bfd *
bfd_boolean NAME (aout, mkobject)(bfd *)
enum machine_type NAME (aout, machine_type)(enum bfd_architecture
enum machine_type unsigned
bfd_boolean *bfd_boolean 
NAME (aout, set_arch_mach)(bfd *
bfd_boolean NAME (aout, new_section_hook)(bfd *
bfd_boolean asection *bfd_boolean NAME (aout, set_section_contents)(bfd *
asymbolNAME (aout, make_empty_symbol)(bfd *)
bfd_boolean NAME (aout, translate_symbol_table)(bfd *
bfd_boolean NAME (aout, slurp_symbol_table)(bfd *)
bfd_boolean NAME (aout, write_syms)(bfd *)
void NAME (aout, reclaim_symbol_table)(bfd *)
long NAME (aout, get_symtab_upper_bound)(bfd *)
long NAME (aout, canonicalize_symtab)(bfd *
long asymbol **void NAME (aout, swap_ext_reloc_in)(bfd *
void NAME (aout, swap_std_reloc_in)(bfd *
reloc_howto_type * NAME (aout, reloc_type_lookup)(bfd *
reloc_howto_type * NAME (aout, reloc_name_lookup)(bfd *
reloc_howto_type const char
*bfd_boolean 
NAME (aout, slurp_reloc_table)(bfd *
reloc_howto_type const char
*bfd_boolean asymbol **long 
NAME (aout, canonicalize_reloc)(bfd *
reloc_howto_type const char
*bfd_boolean asymbol **long
arelent asymbol **long 
NAME (aout, get_reloc_upper_bound)(bfd *
void NAME (aout, reclaim_reloc)(bfd *
alentNAME (aout, get_lineno)(bfd *
alent asymbol *void NAME (aout, print_symbol)(bfd *
void NAME (aout, get_symbol_info)(bfd *
void asymbol symbol_info
*bfd_boolean 
NAME (aout, find_nearest_line)(bfd *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long 
NAME (aout, read_minisymbols)(bfd *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol
NAME (aout, minisymbol_to_symbol)(bfd *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int 
NAME (aout, sizeof_headers)(bfd *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int struct bfd_link_info
*bfd_boolean 
NAME (aout, adjust_sizes_and_vmas)(bfd *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int struct bfd_link_info
*bfd_boolean bfd_size_type
file_ptr *void 
NAME (aout, swap_exec_header_in)(bfd *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int struct bfd_link_info
*bfd_boolean bfd_size_type
file_ptr *void struct
external_exec struct
internal_exec *void 
NAME (aout, swap_exec_header_out)(bfd *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int struct bfd_link_info
*bfd_boolean bfd_size_type
file_ptr *void struct
external_exec struct
internal_exec *void struct
internal_exec struct
external_exec *struct
bfd_hash_entry
NAME (aout, link_hash_newfunc)(struct bfd_hash_entry *
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int struct bfd_link_info
*bfd_boolean bfd_size_type
file_ptr *void struct
external_exec struct
internal_exec *void struct
internal_exec struct
external_exec *struct
bfd_hash_entry struct
bfd_hash_table const char
*bfd_boolean 
NAME (aout, link_hash_table_init)(struct aout_link_hash_table *
struct bfd_link_hash_tableNAME (aout, link_hash_table_create)(bfd *)
bfd_boolean NAME (aout, link_add_symbols)(bfd *
bfd_boolean struct
bfd_link_info *bfd_boolean 
NAME (aout, final_link)(bfd *
bfd_boolean NAME (aout, bfd_free_cached_info)(bfd *)

Variables

const bfd_target struct
internal_exec const bfd_target
bfd
enum machine_type unsigned long
 unsigned
bfd_boolean asection *bfd_boolean sec_ptr
bfd_boolean asection
*bfd_boolean const void 
file_ptr
bfd_boolean asection
*bfd_boolean const void 
bfd_size_type
bfd_boolean aout_symbol_type
struct external_nlist char 
bfd_boolean
reloc_howto_type bfd_reloc_code_real_type
alent asymbol *void void asymbol bfd_print_symbol_type
void asymbol symbol_info
*bfd_boolean asection asymbol 
bfd_vma
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int struct bfd_link_info
*bfd_boolean bfd_size_type
file_ptr *void struct
external_exec struct
internal_exec *void struct
internal_exec struct
external_exec *struct
bfd_hash_entry struct
bfd_hash_table const char
*bfd_boolean bfd struct
bfd_hash_entry
struct
void asymbol symbol_info
*bfd_boolean asection asymbol
const char const char unsigned
int *long void unsigned int
*asymbol const void asymbol
*int struct bfd_link_info
*bfd_boolean bfd_size_type
file_ptr *void struct
external_exec struct
internal_exec *void struct
internal_exec struct
external_exec *struct
bfd_hash_entry struct
bfd_hash_table const char
*bfd_boolean bfd struct
bfd_hash_entry unsigned 
int

Class Documentation

struct aout_link_hash_entry

Definition at line 102 of file libaout.h.

Class Members
int indx
bfd_boolean written
struct aout_link_hash_table

Definition at line 113 of file libaout.h.

struct internal_exec

Definition at line 220 of file libaout.h.

Class Members
unsigned char a_balign
bfd_vma a_bss
unsigned char a_dalign
bfd_vma a_data
bfd_vma a_dload
bfd_vma a_drsize
bfd_vma a_entry
long a_info
char a_relaxable
bfd_vma a_syms
unsigned char a_talign
bfd_vma a_text
bfd_vma a_tload
bfd_vma a_trsize
struct aout_symbol

Definition at line 339 of file libaout.h.

Collaboration diagram for aout_symbol:
Class Members
short desc
char other
asymbol symbol
unsigned char type
struct aout_data_struct

Definition at line 424 of file libaout.h.

struct aout_section_data_struct

Definition at line 457 of file libaout.h.

Class Members
void * relocs

Define Documentation

#define adata (   bfd)    ((bfd)->tdata.aout_data->a)

Definition at line 430 of file libaout.h.

Definition at line 605 of file libaout.h.

Definition at line 615 of file libaout.h.

Definition at line 619 of file libaout.h.

Definition at line 597 of file libaout.h.

Definition at line 607 of file libaout.h.

Definition at line 609 of file libaout.h.

#define aout_backend_info (   abfd)    ((const struct aout_backend_data *)((abfd)->xvec->backend_data))

Definition at line 211 of file libaout.h.

#define aout_hash_table (   p)    ((struct aout_link_hash_table *) ((p)->hash))

Definition at line 135 of file libaout.h.

#define aout_link_hash_lookup (   table,
  string,
  create,
  copy,
  follow 
)
Value:
((struct aout_link_hash_entry *) \
   bfd_link_hash_lookup (&(table)->root, (string), (create), (copy), (follow)))

Definition at line 120 of file libaout.h.

#define aout_link_hash_traverse (   table,
  func,
  info 
)
Value:
(bfd_link_hash_traverse                                        \
   (&(table)->root,                                            \
    (bfd_boolean (*) (struct bfd_link_hash_entry *, void *)) (func),  \
    (info)))

Definition at line 126 of file libaout.h.

#define aout_section_data (   s)    ((struct aout_section_data_struct *) (s)->used_by_bfd)

Definition at line 463 of file libaout.h.

#define aout_section_merge_with_text_p (   abfd,
  sec 
)
Value:
(((sec)->flags & (SEC_HAS_CONTENTS | SEC_READONLY)) ==         \
      (SEC_HAS_CONTENTS | SEC_READONLY)                               \
   && obj_textsec (abfd) != NULL                               \
   && obj_datasec (abfd) != NULL                               \
   && (sec)->vma >= (obj_textsec (abfd)->vma +                        \
                   obj_textsec (abfd)->size)                          \
   && ((sec)->vma + (sec)->size) <= obj_datasec (abfd)->vma           \
   && ((abfd)->flags & D_PAGED) != 0)

Definition at line 678 of file libaout.h.

#define aout_symbol (   asymbol)    ((aout_symbol_type *)(&(asymbol)->the_bfd))

Definition at line 452 of file libaout.h.

#define BYTES_IN_WORD   4

Definition at line 89 of file libaout.h.

#define exec_hdr (   bfd)    (adata (bfd).hdr)

Definition at line 431 of file libaout.h.

#define GET_MAGIC   H_GET_32

Definition at line 82 of file libaout.h.

#define GET_SWORD   H_GET_S32

Definition at line 81 of file libaout.h.

#define GET_WORD   H_GET_32

Definition at line 80 of file libaout.h.

#define H_GET_16   bfd_h_get_16

Definition at line 44 of file libaout.h.

#define H_GET_32   bfd_h_get_32

Definition at line 43 of file libaout.h.

#define H_GET_64   bfd_h_get_64

Definition at line 42 of file libaout.h.

#define H_GET_8   bfd_h_get_8

Definition at line 45 of file libaout.h.

Definition at line 48 of file libaout.h.

Definition at line 47 of file libaout.h.

Definition at line 46 of file libaout.h.

Definition at line 49 of file libaout.h.

#define H_PUT_16   bfd_h_put_16

Definition at line 36 of file libaout.h.

#define H_PUT_32   bfd_h_put_32

Definition at line 35 of file libaout.h.

#define H_PUT_64   bfd_h_put_64

Definition at line 34 of file libaout.h.

#define H_PUT_8   bfd_h_put_8

Definition at line 37 of file libaout.h.

Definition at line 40 of file libaout.h.

Definition at line 39 of file libaout.h.

Definition at line 38 of file libaout.h.

Definition at line 41 of file libaout.h.

#define JNAME (   x)    CONCAT2 (x,_32)

Definition at line 88 of file libaout.h.

#define N_DYNAMIC (   exec)    ((exec).a_info & 0x80000000)

Definition at line 295 of file libaout.h.

#define N_FLAGS (   exec)    (((exec).a_info >> 24) & 0xff)

Definition at line 306 of file libaout.h.

#define N_MACHTYPE (   exec)    ((enum machine_type)(((exec).a_info >> 16) & 0xff))

Definition at line 302 of file libaout.h.

#define N_MAGIC (   exec)    ((exec).a_info & 0xffff)

Definition at line 298 of file libaout.h.

#define N_SET_DYNAMIC (   exec,
  dynamic 
)
Value:
((exec).a_info = (dynamic) ? (long) ((exec).a_info | 0x80000000) : \
((exec).a_info & 0x7fffffff))

Definition at line 317 of file libaout.h.

#define N_SET_FLAGS (   exec,
  flags 
)
Value:
((exec).a_info = \
 ((exec).a_info&0x00ffffff) | (((flags) & 0xff) << 24))

Definition at line 334 of file libaout.h.

#define N_SET_INFO (   exec,
  magic,
  type,
  flags 
)
Value:
((exec).a_info = ((magic) & 0xffff) \
 | (((int)(type) & 0xff) << 16) \
 | (((flags) & 0xff) << 24))

Definition at line 310 of file libaout.h.

#define N_SET_MACHTYPE (   exec,
  machtype 
)
Value:
((exec).a_info = \
 ((exec).a_info&0xff00ffff) | ((((int)(machtype))&0xff) << 16))

Definition at line 328 of file libaout.h.

#define N_SET_MAGIC (   exec,
  magic 
)    ((exec).a_info = (((exec).a_info & 0xffff0000) | ((magic) & 0xffff)))

Definition at line 323 of file libaout.h.

#define NAME (   x,
  y 
)    CONCAT3 (x,_32_,y)

Definition at line 86 of file libaout.h.

#define NO_WRITE_HEADER_KLUDGE   0

Definition at line 611 of file libaout.h.

#define obj_aout_dynamic_info (   bfd)    (adata (bfd).dynamic_info)

Definition at line 448 of file libaout.h.

#define obj_aout_external_string_size (   bfd)    (adata (bfd).external_string_size)

Definition at line 445 of file libaout.h.

#define obj_aout_external_strings (   bfd)    (adata (bfd).external_strings)

Definition at line 444 of file libaout.h.

#define obj_aout_external_sym_count (   bfd)    (adata (bfd).external_sym_count)

Definition at line 442 of file libaout.h.

#define obj_aout_external_syms (   bfd)    (adata (bfd).external_syms)

Definition at line 441 of file libaout.h.

#define obj_aout_string_window (   bfd)    (adata (bfd).string_window)

Definition at line 446 of file libaout.h.

#define obj_aout_subformat (   bfd)    (adata (bfd).subformat)

Definition at line 440 of file libaout.h.

#define obj_aout_sym_hashes (   bfd)    (adata (bfd).sym_hashes)

Definition at line 447 of file libaout.h.

#define obj_aout_sym_window (   bfd)    (adata (bfd).sym_window)

Definition at line 443 of file libaout.h.

#define obj_aout_symbols (   bfd)    (adata (bfd).symbols)

Definition at line 432 of file libaout.h.

#define obj_bsssec (   bfd)    (adata (bfd).bsssec)

Definition at line 435 of file libaout.h.

#define obj_datasec (   bfd)    (adata (bfd).datasec)

Definition at line 434 of file libaout.h.

#define obj_reloc_entry_size (   bfd)    (adata (bfd).reloc_entry_size)

Definition at line 438 of file libaout.h.

#define obj_str_filepos (   bfd)    (adata (bfd).str_filepos)

Definition at line 437 of file libaout.h.

#define obj_sym_filepos (   bfd)    (adata (bfd).sym_filepos)

Definition at line 436 of file libaout.h.

#define obj_symbol_entry_size (   bfd)    (adata (bfd).symbol_entry_size)

Definition at line 439 of file libaout.h.

#define obj_textsec (   bfd)    (adata (bfd).textsec)

Definition at line 433 of file libaout.h.

#define PUT_MAGIC   H_PUT_32

Definition at line 84 of file libaout.h.

#define PUT_WORD   H_PUT_32

Definition at line 83 of file libaout.h.

#define set_aout_section_data (   s,
  v 
)    ((s)->used_by_bfd = (void *)&(v)->relocs)

Definition at line 466 of file libaout.h.

#define WRITE_HEADERS (   abfd,
  execp 
)

Definition at line 624 of file libaout.h.


Typedef Documentation


Enumeration Type Documentation

Enumerator:
M_UNKNOWN 
M_68010 
M_68020 
M_SPARC 
M_NS32032 
M_NS32532 
M_386 
M_29K 
M_386_DYNIX 
M_ARM 
M_SPARCLET 
M_386_NETBSD 
M_68K_NETBSD 
M_68K4K_NETBSD 
M_532_NETBSD 
M_SPARC_NETBSD 
M_PMAX_NETBSD 
M_VAX_NETBSD 
M_ALPHA_NETBSD 
M_ARM6_NETBSD 
M_SPARCLET_1 
M_POWERPC_NETBSD 
M_VAX4K_NETBSD 
M_MIPS1 
M_MIPS2 
M_88K_OPENBSD 
M_HPPA_OPENBSD 
M_SPARC64_NETBSD 
M_X86_64_NETBSD 
M_SPARCLET_2 
M_SPARCLET_3 
M_SPARCLET_4 
M_HP200 
M_HP300 
M_HPUX 
M_SPARCLET_5 
M_SPARCLET_6 
M_SPARCLITE_LE 
M_CRIS 
M_UNKNOWN 
M_68010 
M_68020 
M_SPARC 
M_386 
M_29K 
M_RS6000 
M_VAX4K_NETBSD 
M_HP200 
M_HP300 
M_HPUX23 

Definition at line 249 of file libaout.h.

{
  M_UNKNOWN = 0,
  M_68010 = 1,
  M_68020 = 2,
  M_SPARC = 3,
  /* Skip a bunch so we don't run into any of SUN's numbers.  */
  /* Make these up for the ns32k.  */
  M_NS32032 = (64),    /* NS32032 running ?  */
  M_NS32532 = (64 + 5),       /* NS32532 running mach.  */
  M_386 = 100,
  M_29K = 101,            /* AMD 29000.  */
  M_386_DYNIX = 102,   /* Sequent running dynix.  */
  M_ARM = 103,                /* Advanced Risc Machines ARM.  */
  M_SPARCLET = 131,    /* SPARClet = M_SPARC + 128.  */
  M_386_NETBSD = 134,         /* NetBSD/i386 binary.  */
  M_68K_NETBSD = 135,         /* NetBSD/m68k binary.  */
  M_68K4K_NETBSD = 136,       /* NetBSD/m68k4k binary.  */
  M_532_NETBSD = 137,         /* NetBSD/ns32k binary.  */
  M_SPARC_NETBSD = 138,       /* NetBSD/sparc binary.  */
  M_PMAX_NETBSD = 139,        /* NetBSD/pmax (MIPS little-endian) binary.  */
  M_VAX_NETBSD = 140,         /* NetBSD/vax binary.  */
  M_ALPHA_NETBSD = 141,       /* NetBSD/alpha binary.  */
  M_ARM6_NETBSD = 143,        /* NetBSD/arm32 binary.  */
  M_SPARCLET_1 = 147,         /* 0x93, reserved.  */
  M_POWERPC_NETBSD = 149, /* NetBSD/powerpc (big-endian) binary.  */
  M_VAX4K_NETBSD = 150,       /* NetBSD/vax 4K pages binary.  */
  M_MIPS1 = 151,          /* MIPS R2000/R3000 binary.  */
  M_MIPS2 = 152,          /* MIPS R4000/R6000 binary.  */
  M_88K_OPENBSD = 153,        /* OpenBSD/m88k binary.  */
  M_HPPA_OPENBSD = 154,       /* OpenBSD/hppa binary.  */
  M_SPARC64_NETBSD = 156, /* NetBSD/sparc64 binary.  */
  M_X86_64_NETBSD = 157,  /* NetBSD/amd64 binary.  */
  M_SPARCLET_2 = 163,         /* 0xa3, reserved.  */
  M_SPARCLET_3 = 179,         /* 0xb3, reserved.  */
  M_SPARCLET_4 = 195,         /* 0xc3, reserved.  */
  M_HP200 = 200,       /* HP 200 (68010) BSD binary.  */
  M_HP300 = (300 % 256),  /* HP 300 (68020+68881) BSD binary.  */
  M_HPUX = (0x20c % 256), /* HP 200/300 HPUX binary.  */
  M_SPARCLET_5 = 211,         /* 0xd3, reserved.  */
  M_SPARCLET_6 = 227,         /* 0xe3, reserved.  */
/*M_SPARCLET_7 = 243  / * 0xf3, reserved.  */
  M_SPARCLITE_LE = 243,
  M_CRIS = 255                /* Axis CRIS binary.  */
};

Function Documentation

bfd_boolean NAME ( aout  ,
squirt_out_relocs   
)
bfd_boolean asection* bfd_boolean NAME ( aout  ,
make_sections   
)

Definition at line 449 of file pdp11.c.

{
  if (obj_textsec (abfd) == NULL && bfd_make_section (abfd, ".text") == NULL)
    return FALSE;
  if (obj_datasec (abfd) == NULL && bfd_make_section (abfd, ".data") == NULL)
    return FALSE;
  if (obj_bsssec (abfd) == NULL  && bfd_make_section (abfd, ".bss") == NULL)
    return FALSE;
  return TRUE;
}

Here is the call graph for this function:

const bfd_target* NAME ( aout  ,
some_aout_object_p   
)
bfd_boolean NAME ( aout  ,
mkobject   
)

Definition at line 668 of file pdp11.c.

{
  struct aout_data_struct  *rawptr;
  bfd_size_type amt = sizeof (struct aout_data_struct);

  bfd_set_error (bfd_error_system_call);

  /* Use an intermediate variable for clarity.  */
  rawptr = bfd_zalloc (abfd, amt);

  if (rawptr == NULL)
    return FALSE;

  abfd->tdata.aout_data = rawptr;
  exec_hdr (abfd) = &(rawptr->e);

  obj_textsec (abfd) = NULL;
  obj_datasec (abfd) = NULL;
  obj_bsssec (abfd)  = NULL;

  return TRUE;
}

Here is the call graph for this function:

enum machine_type NAME ( aout  ,
machine_type   
)
bfd_boolean NAME ( aout  ,
new_section_hook   
)
asymbol* NAME ( aout  ,
make_empty_symbol   
)

Definition at line 1444 of file pdp11.c.

{
  bfd_size_type amt = sizeof (aout_symbol_type);
  aout_symbol_type *new = bfd_zalloc (abfd, amt);

  if (!new)
    return NULL;
  new->symbol.the_bfd = abfd;

  return &new->symbol;
}

Here is the call graph for this function:

bfd_boolean NAME ( aout  ,
translate_symbol_table   
)
bfd_boolean NAME ( aout  ,
slurp_symbol_table   
)

Definition at line 1511 of file pdp11.c.

{
  struct external_nlist *old_external_syms;
  aout_symbol_type *cached;
  bfd_size_type cached_size;

  /* If there's no work to be done, don't do any.  */
  if (obj_aout_symbols (abfd) != NULL)
    return TRUE;

  old_external_syms = obj_aout_external_syms (abfd);

  if (! aout_get_external_symbols (abfd))
    return FALSE;

  cached_size = obj_aout_external_sym_count (abfd);
  cached_size *= sizeof (aout_symbol_type);
  cached = bfd_zmalloc (cached_size);
  if (cached == NULL && cached_size != 0)
    return FALSE;

  /* Convert from external symbol information to internal.  */
  if (! (NAME (aout, translate_symbol_table)
        (abfd, cached,
         obj_aout_external_syms (abfd),
         obj_aout_external_sym_count (abfd),
         obj_aout_external_strings (abfd),
         obj_aout_external_string_size (abfd),
         FALSE)))
    {
      free (cached);
      return FALSE;
    }

  bfd_get_symcount (abfd) = obj_aout_external_sym_count (abfd);

  obj_aout_symbols (abfd) = cached;

  /* It is very likely that anybody who calls this function will not
     want the external symbol information, so if it was allocated
     because of our call to aout_get_external_symbols, we free it up
     right away to save space.  */
  if (old_external_syms == NULL
      && obj_aout_external_syms (abfd) != NULL)
    {
#ifdef USE_MMAP
      bfd_free_window (&obj_aout_sym_window (abfd));
#else
      free (obj_aout_external_syms (abfd));
#endif
      obj_aout_external_syms (abfd) = NULL;
    }

  return TRUE;
}

Here is the call graph for this function:

bfd_boolean NAME ( aout  ,
write_syms   
)

Definition at line 1626 of file pdp11.c.

{
  unsigned int count ;
  asymbol **generic = bfd_get_outsymbols (abfd);
  struct bfd_strtab_hash *strtab;

  strtab = _bfd_stringtab_init ();
  if (strtab == NULL)
    return FALSE;

  for (count = 0; count < bfd_get_symcount (abfd); count++)
    {
      asymbol *g = generic[count];
      bfd_size_type indx;
      struct external_nlist nsp;

      PUT_WORD (abfd, 0, nsp.e_unused);

      indx = add_to_stringtab (abfd, strtab, g->name, FALSE);
      if (indx == (bfd_size_type) -1)
       goto error_return;
      PUT_WORD (abfd, indx, nsp.e_strx);

      if (bfd_asymbol_flavour(g) == abfd->xvec->flavour)
       H_PUT_8 (abfd, aout_symbol(g)->type,  nsp.e_type);
      else
       H_PUT_8 (abfd, 0, nsp.e_type);

      if (! translate_to_native_sym_flags (abfd, g, &nsp))
       goto error_return;

      H_PUT_8 (abfd, 0, nsp.e_ovly);

      if (bfd_bwrite ((void *)&nsp, (bfd_size_type) EXTERNAL_NLIST_SIZE, abfd)
         != EXTERNAL_NLIST_SIZE)
       goto error_return;

      /* NB: `KEEPIT' currently overlays `udata.p', so set this only
        here, at the end.  */
      g->KEEPIT = count;
    }

  if (! emit_stringtab (abfd, strtab))
    goto error_return;

  _bfd_stringtab_free (strtab);

  return TRUE;

error_return:
  _bfd_stringtab_free (strtab);
  return FALSE;
}

Here is the call graph for this function:

void NAME ( aout  ,
reclaim_symbol_table   
)
long NAME ( aout  ,
get_symtab_upper_bound   
)

Definition at line 2046 of file pdp11.c.

{
  if (!NAME (aout, slurp_symbol_table) (abfd))
    return -1;

  return (bfd_get_symcount (abfd) + 1) * (sizeof (aout_symbol_type *));

Here is the call graph for this function:

long NAME ( aout  ,
canonicalize_symtab   
)
long asymbol** void NAME ( aout  ,
swap_ext_reloc_in   
)
void NAME ( aout  ,
swap_std_reloc_in   
)
reloc_howto_type* NAME ( aout  ,
reloc_type_lookup   
)
reloc_howto_type* NAME ( aout  ,
reloc_name_lookup   
)
reloc_howto_type const char* bfd_boolean NAME ( aout  ,
slurp_reloc_table   
)
reloc_howto_type const char* bfd_boolean asymbol** long NAME ( aout  ,
canonicalize_reloc   
)
reloc_howto_type const char* bfd_boolean asymbol** long arelent asymbol** long NAME ( aout  ,
get_reloc_upper_bound   
)
void NAME ( aout  ,
reclaim_reloc   
)
alent* NAME ( aout  ,
get_lineno   
)
alent asymbol* void NAME ( aout  ,
print_symbol   
)
void NAME ( aout  ,
get_symbol_info   
)
void asymbol symbol_info* bfd_boolean NAME ( aout  ,
find_nearest_line   
)
void asymbol symbol_info* bfd_boolean asection asymbol const char const char unsigned int* long NAME ( aout  ,
read_minisymbols   
)
void asymbol symbol_info* bfd_boolean asection asymbol const char const char unsigned int* long void unsigned int* asymbol* NAME ( aout  ,
minisymbol_to_symbol   
)
void asymbol symbol_info* bfd_boolean asection asymbol const char const char unsigned int* long void unsigned int* asymbol const void asymbol* int NAME ( aout  ,
sizeof_headers   
)
void asymbol symbol_info* bfd_boolean asection asymbol const char const char unsigned int* long void unsigned int* asymbol const void asymbol* int struct bfd_link_info* bfd_boolean NAME ( aout  ,
adjust_sizes_and_vmas   
) [read]
struct bfd_link_hash_table* NAME ( aout  ,
link_hash_table_create   
) [read]

Definition at line 2470 of file pdp11.c.

{
  struct aout_link_hash_table *ret;
  bfd_size_type amt = sizeof (struct aout_link_hash_table);

  ret = bfd_alloc (abfd, amt);
  if (ret == NULL)
    return NULL;
  if (! NAME (aout, link_hash_table_init) (ret, abfd,
                                      NAME (aout, link_hash_newfunc),
                                      sizeof (struct aout_link_hash_entry)))
    {
      free (ret);
      return NULL;
    }
  return &ret->root;

Here is the call graph for this function:

bfd_boolean NAME ( aout  ,
link_add_symbols   
)
bfd_boolean struct bfd_link_info* bfd_boolean NAME ( aout  ,
final_link   
) [read]

Definition at line 2399 of file pdp11.c.

{
  asection *o;

  if (bfd_get_format (abfd) != bfd_object)
    return TRUE;

#define BFCI_FREE(x) if (x != NULL) { free (x); x = NULL; }
  BFCI_FREE (obj_aout_symbols (abfd));

#ifdef USE_MMAP
  obj_aout_external_syms (abfd) = 0;
  bfd_free_window (&obj_aout_sym_window (abfd));
  bfd_free_window (&obj_aout_string_window (abfd));
  obj_aout_external_strings (abfd) = 0;
#else
  BFCI_FREE (obj_aout_external_syms (abfd));
  BFCI_FREE (obj_aout_external_strings (abfd));
#endif
  for (o = abfd->sections; o != NULL; o = o->next)
    BFCI_FREE (o->relocation);
#undef BFCI_FREE

  return TRUE;

Here is the call graph for this function:


Variable Documentation

Definition at line 478 of file libaout.h.

Definition at line 499 of file libaout.h.

Definition at line 547 of file libaout.h.

reloc_howto_type bfd_reloc_code_real_type

Definition at line 526 of file libaout.h.

Definition at line 493 of file libaout.h.

Definition at line 553 of file libaout.h.

Definition at line 493 of file libaout.h.

Definition at line 579 of file libaout.h.

Definition at line 484 of file libaout.h.

void sec_ptr

Definition at line 493 of file libaout.h.

Definition at line 579 of file libaout.h.

Definition at line 487 of file libaout.h.