Expand description
XCOFF definitions
These definitions are independent of read/write support, although we do implement some traits useful for those.
This module is the equivalent of /usr/include/xcoff.h, and is based heavily on it.
Structs§
- AuxHeader32
- The auxiliary header immediately following file header. If the value of the f_opthdr field in the file header is 0, the auxiliary header does not exist.
- AuxHeader64
- The auxiliary header immediately following file header. If the value of the f_opthdr field in the file header is 0, the auxiliary header does not exist.
- Block
Aux32 - Block auxiliary entry for the C_BLOCK and C_FCN Symbols.
- Block
Aux64 - Block auxiliary entry for the C_BLOCK and C_FCN Symbols.
- Csect
Aux32 - Csect auxiliary entry for C_EXT, C_WEAKEXT, and C_HIDEXT symbols.
- Csect
Aux64 - Csect auxiliary entry for C_EXT, C_WEAKEXT, and C_HIDEXT symbols.
- Dwarf
Aux32 - Section auxiliary entry Format for C_DWARF symbols.
- Dwarf
Aux64 - Section auxiliary entry Format for C_DWARF symbols.
- ExpAux
- Exception auxiliary entry. (XCOFF64 only)
- File
Aux32 - File Auxiliary Entry for C_FILE Symbols.
- File
Aux64 - File Auxiliary Entry for C_FILE Symbols.
- File
Header32 - The header at the start of every 32-bit XCOFF file.
- File
Header64 - The header at the start of every 64-bit XCOFF file.
- FunAux32
- Function auxiliary entry.
- FunAux64
- Function auxiliary entry.
- Rel32
- Relocation table entry
- Rel64
- Relocation table entry
- Section
Header32 - Section header.
- Section
Header64 - Section header.
- StatAux
- Section auxiliary entry for the C_STAT Symbol. (XCOFF32 Only)
- Symbol32
- Symbol table entry.
- Symbol64
- Symbol table entry.
- Symbol
Bytes
Constants§
- AOUTHSZ_
SHORT - Some AIX programs generate auxiliary headers for 32-bit object files that end after the data_start field.
- AUX_
CSECT - Identifies a csect auxiliary entry.
- AUX_
EXCEPT - Identifies an exception auxiliary entry.
- AUX_FCN
- Identifies a function auxiliary entry.
- AUX_
FILE - Identifies a file auxiliary entry.
- AUX_
SECT - Identifies a SECT auxiliary entry.
- AUX_SYM
- Identifies a symbol auxiliary entry.
- C_ALIAS
- Duplicate tag.
- C_ARG
- Function argument.
- C_AUTO
- Automatic variable.
- C_BCOMM
- Beginning of common block.
- C_BINCL
- Beginning of include file.
- C_BLOCK
- Beginning or end of inner block.
- C_BSTAT
- Beginning of static block.
- C_DECL
- Declaration of object (type).
- C_DWARF
- DWARF section symbol.
- C_ECOML
- Local member of common block.
- C_ECOMM
- End of common block.
- C_EFCN
- Physical end of function.
- C_EINCL
- Ending of include file.
- C_ENTAG
- Enumeration tag.
- C_ENTRY
- Alternate entry.
- C_EOS
- End of structure.
- C_ESTAT
- End of static block.
- C_EXT
- External symbol.
- C_
EXTDEF - External definition.
- C_FCN
- Beginning or end of function.
- C_FIELD
- Bit field.
- C_FILE
- Source file name and compiler information.
- C_FUN
- Function or procedure.
- C_GSYM
- Global variable.
- C_GTLS
- Global thread-local variable.
- C_
HIDDEN - Special storage class for external.
- C_
HIDEXT - Un-named external symbol.
- C_INFO
- Comment string in .info section.
- C_LABEL
- Label.
- C_LSYM
- Automatic variable allocated on stack.
- C_MOE
- Member of enumeration.
- C_MOS
- Member of structure.
- C_MOU
- Member of union.
- C_NULL
- Symbol table entry marked for deletion.
- C_PSYM
- Argument to subroutine allocated on stack.
- C_REG
- Register variable.
- C_
REGPARM - Register parameter.
- C_RPSYM
- Argument to function or procedure stored in register.
- C_RSYM
- Register variable.
- C_STAT
- Static.
- C_
STRTAG - Structure tag.
- C_STSYM
- Statically allocated symbol.
- C_STTLS
- Static thread-local variable.
- C_TCSYM
- Reserved.
- C_TPDEF
- Type definition.
- C_
ULABEL - Undefined label.
- C_UNTAG
- Union tag.
- C_
USTATIC - Undefined static.
- C_
WEAKEXT - Weak external symbol.
- F_DSA
- Indicates that the file uses Very Large Program Support.
- F_
DYNLOAD - Indicates the file is dynamically loadable and executable. External references are resolved by way of imports, and the file might contain exports and loader relocation.
- F_EXEC
- Indicates that the file is executable. No unresolved external references exist.
- F_
FDPR_ OPTI - Indicates that the file was reordered with the fdpr command.
- F_
FDPR_ PROF - Indicates that the file was profiled with the fdpr command.
- F_LNNO
- Indicates that line numbers have been stripped from the file by a utility program.
- F_
LOADONLY - If the object file is a member of an archive, it can be loaded by the system loader, but the member is ignored by the binder. If the object file is not in an archive, this flag has no effect.
- F_
RELFLG - Indicates that the relocation information for binding has been removed from the file.
- F_
SHROBJ - Indicates the file is a shared object (shared library). The file is separately loadable. That is, it is not normally bound with other objects, and its loader exports symbols are used as automatic import symbols for other object files.
- F_VARPG
- Indicates that one of the members of the auxiliary header specifying the medium page sizes is non-zero.
- MAGIC_
32 - the 32-bit mach magic number
- MAGIC_
64 - the 64-bit mach magic number
- N_ABS
- An absolute symbol. The symbol has a value but is not relocatable.
- N_DEBUG
- A special symbolic debugging symbol.
- N_UNDEF
- An undefined external symbol.
- R_BA
- Branch absolute relocation. References a non-modifiable instruction.
- R_BR
- Branch relative to self relocation. References a non-modifiable instruction.
- R_GL
- Global linkage-external TOC address relocation.
- R_NEG
- Negative relocation.
- R_POS
- Positive relocation.
- R_RBA
- Branch absolute relocation. References a modifiable instruction.
- R_RBR
- Branch relative to self relocation. References a modifiable instruction.
- R_REF
- A non-relocating relocation.
- R_REL
- Relative to self relocation.
- R_RL
- Positive indirect load relocation.
- R_RLA
- Positive load address relocation. Modifiable instruction.
- R_TCL
- Local object TOC address relocation.
- R_TLS
- General-dynamic reference to TLS symbol.
- R_TLSM
- Module reference to TLS.
- R_TLSML
- Module reference to the local TLS storage.
- R_
TLS_ IE - Initial-exec reference to TLS symbol.
- R_
TLS_ LD - Local-dynamic reference to TLS symbol.
- R_
TLS_ LE - Local-exec reference to TLS symbol.
- R_TOC
- Relative to the TOC relocation.
- R_TOCL
- Relative to TOC lower.
- R_TOCU
- Relative to TOC upper.
- R_TRL
- TOC relative indirect load relocation.
- R_TRLA
- Relative to the TOC or to the thread-local storage base relocation.
- SIZEOF_
SYMBOL - SSUBTYP_
DWABREV - SSUBTYP_
DWARNGE - SSUBTYP_
DWFRAME - SSUBTYP_
DWINFO - SSUBTYP_
DWLINE - SSUBTYP_
DWLOC - SSUBTYP_
DWMAC - SSUBTYP_
DWPBNMS - SSUBTYP_
DWPBTYP - SSUBTYP_
DWRNGES - SSUBTYP_
DWSTR - STYP_
BSS - Specifies an uninitialized data section. A section header of this type defines the uninitialized data of a program.
- STYP_
DATA - Specifies an initialized data section. A section of this type contains the initialized data and the TOC of a program.
- STYP_
DEBUG - Specifies a debug section. A section of this type contains stabstring information used by the symbolic debugger.
- STYP_
DWARF - Specifies a DWARF debugging section, which provide source file and symbol information for the symbolic debugger.
- STYP_
EXCEPT - Specifies an exception section. A section of this type provides information to identify the reason that a trap or exception occurred within an executable object program.
- STYP_
INFO - Specifies a comment section. A section of this type provides comments or data to special processing utility programs.
- STYP_
LOADER - Specifies a loader section. A section of this type contains object file information for the system loader to load an XCOFF executable. The information includes imported symbols, exported symbols, relocation data, type-check information, and shared object names.
- STYP_
OVRFLO - Specifies a relocation or line-number field overflow section. A section header of this type contains the count of relocation entries and line number entries for some other section. This section header is required when either of the counts exceeds 65,534.
- STYP_
PAD - Specifies a pad section. A section of this type is used to provide alignment padding between sections within an XCOFF executable object file. This section header type is obsolete since padding is allowed in an XCOFF file without a corresponding pad section header.
- STYP_
REG - “regular” section
- STYP_
TBSS - Specifies an uninitialized thread-local data section.
- STYP_
TDATA - Specifies an initialized thread-local data section.
- STYP_
TEXT - Specifies an executable text (code) section. A section of this type contains the executable instructions of a program.
- STYP_
TYPCHK - Specifies a type-check section. A section of this type contains parameter/argument type-check strings used by the binder.
- SYM_
V_ EXPORTED - SYM_
V_ HIDDEN - SYM_
V_ INTERNAL - SYM_
V_ MASK - Values for visibility as they would appear when encoded in the high 4 bits of the 16-bit unsigned n_type field of symbol table entries. Valid for 32-bit XCOFF only when the o_vstamp in the auxiliary header is greater than 1.
- SYM_
V_ PROTECTED - XFT_CD
- Specifies compiler-defined information.
- XFT_CT
- Specifies the compiler time stamp.
- XFT_CV
- Specifies the compiler version number.
- XFT_FN
- Specifies the source-file name.
- XMC_BS
- BSS class (uninitialized static internal)
- XMC_DB
- Debug Dictionary Table
- XMC_DS
- Descriptor csect
- XMC_GL
- Global Linkage (Interfile Interface Code)
- XMC_PR
- Program Code
- XMC_RO
- Read Only Constant
- XMC_RW
- Read Write Data
- XMC_SV
- Supervisor Call (32-bit process only)
- XMC_
SV64 - Supervisor Call for 64-bit process
- XMC_
SV3264 - Supervisor Call for both 32- and 64-bit processes
- XMC_TB
- Traceback Table csect
- XMC_TC
- General TOC item
- XMC_TC0
- TOC Anchor for TOC Addressability
- XMC_TD
- Scalar data item in the TOC
- XMC_TE
- Symbol mapped at the end of TOC
- XMC_TI
- Traceback Index csect
- XMC_TL
- Initialized thread-local variable
- XMC_UA
- Unclassified - Treated as Read Write
- XMC_UC
- Un-named Fortran Common
- XMC_UL
- Uninitialized thread-local variable
- XMC_XO
- Extended Operation (Pseudo Machine Instruction)
- XTY_CM
- Common csect definition. For uninitialized storage.
- XTY_ER
- External reference.
- XTY_LD
- Defines an entry point to an initialized csect.
- XTY_SD
- Csect definition for initialized storage.