Module xcoff

Source
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.
BlockAux32
Block auxiliary entry for the C_BLOCK and C_FCN Symbols.
BlockAux64
Block auxiliary entry for the C_BLOCK and C_FCN Symbols.
CsectAux32
Csect auxiliary entry for C_EXT, C_WEAKEXT, and C_HIDEXT symbols.
CsectAux64
Csect auxiliary entry for C_EXT, C_WEAKEXT, and C_HIDEXT symbols.
DwarfAux32
Section auxiliary entry Format for C_DWARF symbols.
DwarfAux64
Section auxiliary entry Format for C_DWARF symbols.
ExpAux
Exception auxiliary entry. (XCOFF64 only)
FileAux32
File Auxiliary Entry for C_FILE Symbols.
FileAux64
File Auxiliary Entry for C_FILE Symbols.
FileHeader32
The header at the start of every 32-bit XCOFF file.
FileHeader64
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
SectionHeader32
Section header.
SectionHeader64
Section header.
StatAux
Section auxiliary entry for the C_STAT Symbol. (XCOFF32 Only)
Symbol32
Symbol table entry.
Symbol64
Symbol table entry.
SymbolBytes

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.