A bigobj symbol record is two bytes longer than a COFF one, to hold a 32-bit section number. The symbols otherwise mean the same as in classic COFF.
IMAGE_SYMBOL_EX
0Name, or 4 zero bytes and a string table offset8 bytes8Value4 bytes12SectionNumber, signed4 bytes16Type2 bytes18StorageClass1 byte19NumberOfAuxSymbols1 byte
SectionNumber is 0 (IMAGE_SYM_UNDEFINED) for an external symbol, −1 (ABSOLUTE) for an absolute one, −2 (DEBUG) for a debugging one, and otherwise a section counted from 1. StorageClass, Type, Value and the auxiliary formats hold the same values as in classic COFF, whose tables list every storage class and type.
Sources: LLVM COFF.h (Symbol32Size = 20; struct symbol with an int32_t SectionNumber) (isReservedSectionNumber: any section number ≤ 0 is reserved), and COFFObjectFile.cpp (getSymbolAuxData steps over auxiliary records in units of the symbol entry size, so they are 20 bytes here; coff_aux_section_definition in llvm/Object/COFF.h has NumberLowPart at 12, Selection at 14, Unused at 15 and NumberHighPart at 16, used only for a bigobj). PE Format does not describe bigobj at all; the layout above is established by LLVM’s reader and writer.
The string table starts right after the symbol table, at PointerToSymbolTable plus 20 times NumberOfSymbols, with a 4-byte size that counts itself.
Auxiliary records
Each is 20 bytes. A section definition has these fields, and the others keep their COFF layouts with 2 unused bytes at the end:
| Offset | Size | Field | Meaning |
|---|---|---|---|
| 0 | 4 | Length | The section’s size |
| 4 | 2 | NumberOfRelocations | The number of relocations |
| 6 | 2 | NumberOfLinenumbers | The number of line numbers |
| 8 | 4 | CheckSum | A checksum of the contents |
| 12 | 2 | Number | The low 16 bits of the associated section’s number |
| 14 | 1 | Selection | The COMDAT selection number, as in COFF |
| 15 | 1 | Reserved | |
| 16 | 2 | HighNumber | The high 16 bits of the associated section’s number |
| 18 | 2 | Unused |
Because every auxiliary record is one symbol entry (20 bytes), a .file auxiliary record would hold 20 bytes of the file name instead of 18; this and the “others keep their COFF layouts with 2 unused bytes” statement are inferences from the record size, not from a source that lists the bigobj layouts.