Back to index

cell-binutils  2.17cvs20070401
Classes | Defines
xcoff.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  internal_ldhdr
struct  internal_ldsym
struct  internal_ldrel
struct  xcoff_link_hash_entry
struct  xcoff_loader_info
struct  __rtinit
struct  __rtinit_descriptor
struct  xcoff_ar_file_hdr
struct  xcoff_ar_file_hdr_big
struct  xcoff_ar_hdr
struct  xcoff_ar_hdr_big
union  internal_ldsym._l
struct  internal_ldsym._l._l_l
union  xcoff_link_hash_entry.u

Defines

#define _TEXT   ".text"
#define _DATA   ".data"
#define _BSS   ".bss"
#define _PAD   ".pad"
#define _LOADER   ".loader"
#define _EXCEPT   ".except"
#define _TYPCHK   ".typchk"
#define STYP_LOADER   0x1000
#define STYP_DEBUG   0x2000
#define STYP_OVRFLO   0x8000
#define STYP_EXCEPT   0x0100
#define STYP_TYPCHK   0x4000
#define RS6K_AOUTHDR_OMAGIC   0x0107 /* old: text & data writeable */
#define RS6K_AOUTHDR_NMAGIC   0x0108 /* new: text r/o, data r/w */
#define RS6K_AOUTHDR_ZMAGIC   0x010B /* paged: text r/o, both page-aligned */
#define R_POS   (0x00)
#define R_NEG   (0x01)
#define R_REL   (0x02)
#define R_TOC   (0x03)
#define R_RTB   (0x04)
#define R_GL   (0x05)
#define R_TCL   (0x06)
#define R_BA   (0x08)
#define R_BR   (0x0a)
#define R_RL   (0x0c)
#define R_RLA   (0x0d)
#define R_REF   (0x0f)
#define R_TRL   (0x12)
#define R_TRLA   (0x13)
#define R_RRTBI   (0x14)
#define R_RRTBA   (0x15)
#define R_CAI   (0x16)
#define R_CREL   (0x17)
#define R_RBA   (0x18)
#define R_RBAC   (0x19)
#define R_RBR   (0x1a)
#define R_RBRC   (0x1b)
#define C_INFO   110
#define SMTYP_ALIGN(x)   ((x) >> 3) /* log2 of alignment */
#define SMTYP_SMTYP(x)   ((x) & 0x7) /* symbol type */
#define XTY_ER   0 /* External reference */
#define XTY_SD   1 /* Csect definition */
#define XTY_LD   2 /* Label definition */
#define XTY_CM   3 /* .BSS */
#define XTY_EM   4 /* Error message */
#define XTY_US   5 /* "Reserved for internal use" */
#define XMC_PR   0 /* Read-only program code */
#define XMC_RO   1 /* Read-only constant */
#define XMC_DB   2 /* Read-only debug dictionary table */
#define XMC_TC   3 /* Read-write general TOC entry */
#define XMC_UA   4 /* Read-write unclassified */
#define XMC_RW   5 /* Read-write data */
#define XMC_GL   6 /* Read-only global linkage */
#define XMC_XO   7 /* Read-only extended operation */
#define XMC_SV   8 /* Read-only supervisor call */
#define XMC_BS   9 /* Read-write BSS */
#define XMC_DS   10 /* Read-write descriptor csect */
#define XMC_UC   11 /* Read-write unnamed Fortran common */
#define XMC_TI   12 /* Read-only traceback index csect */
#define XMC_TB   13 /* Read-only traceback table csect */
#define XMC_TC0   15 /* Read-write TOC anchor */
#define XMC_TD   16 /* Read-write data in TOC */
#define XMC_SV64   17 /* Read-only 64 bit supervisor call */
#define XMC_SV3264   18 /* Read-only 32 or 64 bit supervisor call */
#define L_IMPORT   (0x40)
#define L_ENTRY   (0x20)
#define L_EXPORT   (0x10)
#define XCOFF_REF_REGULAR   0x00000001
#define XCOFF_DEF_REGULAR   0x00000002
#define XCOFF_DEF_DYNAMIC   0x00000004
#define XCOFF_LDREL   0x00000008
#define XCOFF_ENTRY   0x00000010
#define XCOFF_CALLED   0x00000020
#define XCOFF_SET_TOC   0x00000040
#define XCOFF_IMPORT   0x00000080
#define XCOFF_EXPORT   0x00000100
#define XCOFF_BUILT_LDSYM   0x00000200
#define XCOFF_MARK   0x00000400
#define XCOFF_HAS_SIZE   0x00000800
#define XCOFF_DESCRIPTOR   0x00001000
#define XCOFF_MULTIPLY_DEFINED   0x00002000
#define XCOFF_RTINIT   0x00004000
#define XCOFF_SYSCALL32   0x00008000
#define XCOFF_SYSCALL64   0x00010000
#define XCOFF_NUMBER_OF_SPECIAL_SECTIONS   6
#define XCOFF_SPECIAL_SECTION_TEXT   0
#define XCOFF_SPECIAL_SECTION_ETEXT   1
#define XCOFF_SPECIAL_SECTION_DATA   2
#define XCOFF_SPECIAL_SECTION_EDATA   3
#define XCOFF_SPECIAL_SECTION_END   4
#define XCOFF_SPECIAL_SECTION_END2   5
#define MINUS_ONE   (((bfd_vma) 0) - 1)
#define RTINIT_DESCRIPTOR_SIZE   (12)
#define XCOFFARMAG   "<aiaff>\012"
#define XCOFFARMAGBIG   "<bigaf>\012"
#define SXCOFFARMAG   8
#define XCOFFARMAG_ELEMENT_SIZE   12
#define XCOFFARMAGBIG_ELEMENT_SIZE   20
#define XCOFFARFMAG   "`\012"
#define SXCOFFARFMAG   2
#define SIZEOF_AR_FILE_HDR   (SXCOFFARMAG + 5 * XCOFFARMAG_ELEMENT_SIZE)
#define SIZEOF_AR_FILE_HDR_BIG   (SXCOFFARMAG + 6 * XCOFFARMAGBIG_ELEMENT_SIZE)
#define SIZEOF_AR_HDR   (3 * XCOFFARMAG_ELEMENT_SIZE + 4 * 12 + 4)
#define SIZEOF_AR_HDR_BIG   (3 * XCOFFARMAGBIG_ELEMENT_SIZE + 4 * 12 + 4)
#define xcoff_big_format_p(abfd)
#define xcoff_ardata(abfd)   ((struct xcoff_ar_file_hdr *) bfd_ardata (abfd)->tdata)
#define xcoff_ardata_big(abfd)   ((struct xcoff_ar_file_hdr_big *) bfd_ardata (abfd)->tdata)
#define arch_eltdata(bfd)   ((struct areltdata *) ((bfd)->arelt_data))
#define arch_xhdr(bfd)   ((struct xcoff_ar_hdr *) arch_eltdata (bfd)->arch_header)
#define arch_xhdr_big(bfd)   ((struct xcoff_ar_hdr_big *) arch_eltdata (bfd)->arch_header)

Class Documentation

struct internal_ldhdr

Definition at line 130 of file xcoff.h.

Class Members
bfd_size_type l_impoff
bfd_size_type l_istlen
bfd_size_type l_nimpid
bfd_size_type l_nreloc
bfd_size_type l_nsyms
bfd_vma l_rldoff
bfd_size_type l_stlen
bfd_size_type l_stoff
bfd_vma l_symoff
unsigned long l_version
struct internal_ldsym

Definition at line 170 of file xcoff.h.

Class Members
union internal_ldsym _l
bfd_size_type l_ifile
bfd_size_type l_parm
short l_scnum
char l_smclas
char l_smtype
bfd_vma l_value
struct internal_ldrel

Definition at line 221 of file xcoff.h.

Class Members
short l_rsecnm
short l_rtype
bfd_size_type l_symndx
bfd_vma l_vaddr
struct xcoff_link_hash_entry

Definition at line 237 of file xcoff.h.

Collaboration diagram for xcoff_link_hash_entry:
Class Members
struct xcoff_link_hash_entry * descriptor
unsigned long flags
long indx
long ldindx
struct internal_ldsym * ldsym
unsigned char smclas
asection * toc_section
union xcoff_link_hash_entry u
struct xcoff_link_hash_table

Definition at line 329 of file xcoff.h.

Collaboration diagram for xcoff_link_hash_table:
Class Members
asection * debug_section
struct bfd_strtab_hash * debug_strtab
asection * descriptor_section
unsigned long file_align
bfd_boolean gc
struct xcoff_import_file * imports
size_t ldrel_count
asection * linkage_section
asection * loader_section
struct xcoff_link_size_list * size_list
asection * special_sections
bfd_boolean textro
asection * toc_section
struct xcoff_link_hash_table::xcoff_link_size_list

Definition at line 375 of file xcoff.h.

Collaboration diagram for xcoff_link_hash_table::xcoff_link_size_list:
Class Members
struct xcoff_link_hash_entry * h
struct xcoff_link_size_list * next
bfd_size_type size
struct xcoff_loader_info

Definition at line 391 of file xcoff.h.

Collaboration diagram for xcoff_loader_info:
Class Members
bfd_boolean export_defineds
bfd_boolean failed
struct bfd_link_info * info
size_t ldsym_count
bfd * output_bfd
size_t string_alc
size_t string_size
char * strings
struct __rtinit_descriptor

Definition at line 442 of file xcoff.h.

Class Members
int f
unsigned char flags
int name_offset
struct xcoff_ar_file_hdr

Definition at line 473 of file xcoff.h.

Class Members
char firstmemoff
char freeoff
char lastmemoff
char magic
char memoff
char symoff
struct xcoff_ar_file_hdr_big

Definition at line 499 of file xcoff.h.

Class Members
char firstmemoff
char freeoff
char lastmemoff
char magic
char memoff
char symoff
char symoff64
struct xcoff_ar_hdr

Definition at line 530 of file xcoff.h.

Class Members
char date
char gid
char mode
char namlen
char nextoff
char prevoff
char size
char uid
struct xcoff_ar_hdr_big

Definition at line 568 of file xcoff.h.

Class Members
char date
char gid
char mode
char namlen
char nextoff
char prevoff
char size
char uid
union internal_ldsym._l

Definition at line 172 of file xcoff.h.

Class Members
_l _l_l
char _l_name
struct internal_ldsym._l._l_l

Definition at line 176 of file xcoff.h.

Class Members
long _l_offset
long _l_zeroes
union xcoff_link_hash_entry.u

Definition at line 249 of file xcoff.h.

Class Members
long toc_indx
bfd_vma toc_offset

Define Documentation

#define _BSS   ".bss"

Definition at line 31 of file xcoff.h.

#define _DATA   ".data"

Definition at line 30 of file xcoff.h.

#define _EXCEPT   ".except"

Definition at line 34 of file xcoff.h.

#define _LOADER   ".loader"

Definition at line 33 of file xcoff.h.

#define _PAD   ".pad"

Definition at line 32 of file xcoff.h.

#define _TEXT   ".text"

Definition at line 29 of file xcoff.h.

#define _TYPCHK   ".typchk"

Definition at line 35 of file xcoff.h.

#define arch_eltdata (   bfd)    ((struct areltdata *) ((bfd)->arelt_data))

Definition at line 633 of file xcoff.h.

#define arch_xhdr (   bfd)    ((struct xcoff_ar_hdr *) arch_eltdata (bfd)->arch_header)

Definition at line 634 of file xcoff.h.

#define arch_xhdr_big (   bfd)    ((struct xcoff_ar_hdr_big *) arch_eltdata (bfd)->arch_header)

Definition at line 636 of file xcoff.h.

#define C_INFO   110

Definition at line 91 of file xcoff.h.

#define L_ENTRY   (0x20)

Definition at line 214 of file xcoff.h.

#define L_EXPORT   (0x10)

Definition at line 216 of file xcoff.h.

#define L_IMPORT   (0x40)

Definition at line 212 of file xcoff.h.

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

Definition at line 420 of file xcoff.h.

#define R_BA   (0x08)

Definition at line 71 of file xcoff.h.

#define R_BR   (0x0a)

Definition at line 72 of file xcoff.h.

#define R_CAI   (0x16)

Definition at line 80 of file xcoff.h.

#define R_CREL   (0x17)

Definition at line 81 of file xcoff.h.

#define R_GL   (0x05)

Definition at line 69 of file xcoff.h.

#define R_NEG   (0x01)

Definition at line 65 of file xcoff.h.

#define R_POS   (0x00)

Definition at line 64 of file xcoff.h.

#define R_RBA   (0x18)

Definition at line 82 of file xcoff.h.

#define R_RBAC   (0x19)

Definition at line 83 of file xcoff.h.

#define R_RBR   (0x1a)

Definition at line 84 of file xcoff.h.

#define R_RBRC   (0x1b)

Definition at line 85 of file xcoff.h.

#define R_REF   (0x0f)

Definition at line 75 of file xcoff.h.

#define R_REL   (0x02)

Definition at line 66 of file xcoff.h.

#define R_RL   (0x0c)

Definition at line 73 of file xcoff.h.

#define R_RLA   (0x0d)

Definition at line 74 of file xcoff.h.

#define R_RRTBA   (0x15)

Definition at line 79 of file xcoff.h.

#define R_RRTBI   (0x14)

Definition at line 78 of file xcoff.h.

#define R_RTB   (0x04)

Definition at line 68 of file xcoff.h.

#define R_TCL   (0x06)

Definition at line 70 of file xcoff.h.

#define R_TOC   (0x03)

Definition at line 67 of file xcoff.h.

#define R_TRL   (0x12)

Definition at line 76 of file xcoff.h.

#define R_TRLA   (0x13)

Definition at line 77 of file xcoff.h.

#define RS6K_AOUTHDR_NMAGIC   0x0108 /* new: text r/o, data r/w */

Definition at line 57 of file xcoff.h.

#define RS6K_AOUTHDR_OMAGIC   0x0107 /* old: text & data writeable */

Definition at line 56 of file xcoff.h.

#define RS6K_AOUTHDR_ZMAGIC   0x010B /* paged: text r/o, both page-aligned */

Definition at line 58 of file xcoff.h.

#define RTINIT_DESCRIPTOR_SIZE   (12)

Definition at line 440 of file xcoff.h.

Definition at line 495 of file xcoff.h.

Definition at line 526 of file xcoff.h.

#define SIZEOF_AR_HDR   (3 * XCOFFARMAG_ELEMENT_SIZE + 4 * 12 + 4)

Definition at line 564 of file xcoff.h.

#define SIZEOF_AR_HDR_BIG   (3 * XCOFFARMAGBIG_ELEMENT_SIZE + 4 * 12 + 4)

Definition at line 602 of file xcoff.h.

#define SMTYP_ALIGN (   x)    ((x) >> 3) /* log2 of alignment */

Definition at line 96 of file xcoff.h.

#define SMTYP_SMTYP (   x)    ((x) & 0x7) /* symbol type */

Definition at line 97 of file xcoff.h.

#define STYP_DEBUG   0x2000

Definition at line 41 of file xcoff.h.

#define STYP_EXCEPT   0x0100

Definition at line 50 of file xcoff.h.

#define STYP_LOADER   0x1000

Definition at line 38 of file xcoff.h.

#define STYP_OVRFLO   0x8000

Definition at line 45 of file xcoff.h.

#define STYP_TYPCHK   0x4000

Definition at line 54 of file xcoff.h.

#define SXCOFFARFMAG   2

Definition at line 469 of file xcoff.h.

#define SXCOFFARMAG   8

Definition at line 460 of file xcoff.h.

#define xcoff_ardata (   abfd)    ((struct xcoff_ar_file_hdr *) bfd_ardata (abfd)->tdata)

Definition at line 626 of file xcoff.h.

#define xcoff_ardata_big (   abfd)    ((struct xcoff_ar_file_hdr_big *) bfd_ardata (abfd)->tdata)

Definition at line 628 of file xcoff.h.

#define xcoff_big_format_p (   abfd)
Value:
((NULL != bfd_ardata (abfd) && NULL == xcoff_ardata (abfd)) || \
   ((NULL != bfd_ardata (abfd)) && \
    (NULL != xcoff_ardata (abfd)) && \
    (xcoff_ardata (abfd)->magic[1] == 'b')))

Definition at line 611 of file xcoff.h.

#define XCOFF_BUILT_LDSYM   0x00000200

Definition at line 303 of file xcoff.h.

#define XCOFF_CALLED   0x00000020

Definition at line 295 of file xcoff.h.

#define XCOFF_DEF_DYNAMIC   0x00000004

Definition at line 289 of file xcoff.h.

#define XCOFF_DEF_REGULAR   0x00000002

Definition at line 287 of file xcoff.h.

#define XCOFF_DESCRIPTOR   0x00001000

Definition at line 309 of file xcoff.h.

#define XCOFF_ENTRY   0x00000010

Definition at line 293 of file xcoff.h.

#define XCOFF_EXPORT   0x00000100

Definition at line 301 of file xcoff.h.

#define XCOFF_HAS_SIZE   0x00000800

Definition at line 307 of file xcoff.h.

#define XCOFF_IMPORT   0x00000080

Definition at line 299 of file xcoff.h.

#define XCOFF_LDREL   0x00000008

Definition at line 291 of file xcoff.h.

#define XCOFF_MARK   0x00000400

Definition at line 305 of file xcoff.h.

#define XCOFF_MULTIPLY_DEFINED   0x00002000

Definition at line 311 of file xcoff.h.

Definition at line 321 of file xcoff.h.

#define XCOFF_REF_REGULAR   0x00000001

Definition at line 285 of file xcoff.h.

#define XCOFF_RTINIT   0x00004000

Definition at line 313 of file xcoff.h.

#define XCOFF_SET_TOC   0x00000040

Definition at line 297 of file xcoff.h.

Definition at line 324 of file xcoff.h.

Definition at line 325 of file xcoff.h.

#define XCOFF_SPECIAL_SECTION_END   4

Definition at line 326 of file xcoff.h.

Definition at line 327 of file xcoff.h.

Definition at line 323 of file xcoff.h.

Definition at line 322 of file xcoff.h.

#define XCOFF_SYSCALL32   0x00008000

Definition at line 315 of file xcoff.h.

#define XCOFF_SYSCALL64   0x00010000

Definition at line 317 of file xcoff.h.

#define XCOFFARFMAG   "`\012"

Definition at line 468 of file xcoff.h.

#define XCOFFARMAG   "<aiaff>\012"

Definition at line 458 of file xcoff.h.

#define XCOFFARMAG_ELEMENT_SIZE   12

Definition at line 463 of file xcoff.h.

#define XCOFFARMAGBIG   "<bigaf>\012"

Definition at line 459 of file xcoff.h.

#define XCOFFARMAGBIG_ELEMENT_SIZE   20

Definition at line 464 of file xcoff.h.

#define XMC_BS   9 /* Read-write BSS */

Definition at line 116 of file xcoff.h.

#define XMC_DB   2 /* Read-only debug dictionary table */

Definition at line 109 of file xcoff.h.

#define XMC_DS   10 /* Read-write descriptor csect */

Definition at line 117 of file xcoff.h.

#define XMC_GL   6 /* Read-only global linkage */

Definition at line 113 of file xcoff.h.

#define XMC_PR   0 /* Read-only program code */

Definition at line 107 of file xcoff.h.

#define XMC_RO   1 /* Read-only constant */

Definition at line 108 of file xcoff.h.

#define XMC_RW   5 /* Read-write data */

Definition at line 112 of file xcoff.h.

#define XMC_SV   8 /* Read-only supervisor call */

Definition at line 115 of file xcoff.h.

#define XMC_SV3264   18 /* Read-only 32 or 64 bit supervisor call */

Definition at line 125 of file xcoff.h.

#define XMC_SV64   17 /* Read-only 64 bit supervisor call */

Definition at line 124 of file xcoff.h.

#define XMC_TB   13 /* Read-only traceback table csect */

Definition at line 120 of file xcoff.h.

#define XMC_TC   3 /* Read-write general TOC entry */

Definition at line 110 of file xcoff.h.

#define XMC_TC0   15 /* Read-write TOC anchor */

Definition at line 122 of file xcoff.h.

#define XMC_TD   16 /* Read-write data in TOC */

Definition at line 123 of file xcoff.h.

#define XMC_TI   12 /* Read-only traceback index csect */

Definition at line 119 of file xcoff.h.

#define XMC_UA   4 /* Read-write unclassified */

Definition at line 111 of file xcoff.h.

#define XMC_UC   11 /* Read-write unnamed Fortran common */

Definition at line 118 of file xcoff.h.

#define XMC_XO   7 /* Read-only extended operation */

Definition at line 114 of file xcoff.h.

#define XTY_CM   3 /* .BSS */

Definition at line 102 of file xcoff.h.

#define XTY_EM   4 /* Error message */

Definition at line 103 of file xcoff.h.

#define XTY_ER   0 /* External reference */

Definition at line 99 of file xcoff.h.

#define XTY_LD   2 /* Label definition */

Definition at line 101 of file xcoff.h.

#define XTY_SD   1 /* Csect definition */

Definition at line 100 of file xcoff.h.

#define XTY_US   5 /* "Reserved for internal use" */

Definition at line 104 of file xcoff.h.