RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
COFF::COFFFormat::Symbol Class Reference

A COFF symbol. More...

#include <coff.h>

Public Member Functions

void Read (Linker::Reader &rd)
 
bool IsExternal () const
 

Public Attributes

std::string name
 Symbol name (COFF name: n_name, if it fits inside field)
 
uint32_t name_index
 The index of the symbol name within the string table, if not stored directly in the entry, 0 otherwise (COFF name: n_name)
 
uint32_t value
 The actual value of the symbol (COFF name: n_value)
 
uint16_t section_number
 The number of the section, with special values 0 (N_UNDEF), 1 (N_ABS) and 2 (N_DEBUG) (COFF name: n_scnum)
 
uint16_t type
 The symbol type (COFF name: n_type)
 
uint8_t storage_class
 COFF name: n_sclass, typical values are 2 (C_EXT), 3 (C_STAT)
 
uint8_t auxiliary_count
 Signifies how many extra entries are present, these should be skipped, 0 is a typical value (COFF name: n_numaux)
 

Detailed Description

A COFF symbol.

Member Data Documentation

◆ storage_class

uint8_t COFF::COFFFormat::Symbol::storage_class

COFF name: n_sclass, typical values are 2 (C_EXT), 3 (C_STAT)

The fields storage_class, section_number and value interact in non-obvious ways


The documentation for this class was generated from the following files: