dmd.scanomf

Extract symbols from an OMF object file.

Members

Functions

OMFObjSize
uint OMFObjSize(const(void)* base, uint length, const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
scanOmfLib
bool scanOmfLib(void delegate(char* name, void* base, size_t length) pAddObjModule, void* buf, size_t buflen, uint pagesize)

Scan a block of memory buf[0..buflen], pulling out each OMF object module in it and sending the info in it to (*pAddObjModule).

scanOmfObjModule
void scanOmfObjModule(void delegate(const(char)[] name, int pickAny) pAddSymbol, const(ubyte)[] base, const(char)* module_name, Loc loc)

Reads an object module from base[] and passes the names of any exported symbols to (*pAddSymbol)().

writeOMFObj
void writeOMFObj(OutBuffer* buf, const(void)* base, uint length, const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta