dmd.scanomf
Extract symbols from an OMF object file.
License
Source: scanomf.d
Documentation: https://dlang.org/phobos/dmd_scanomf.html
-
Declaration
voidscanOmfObjModule(void delegate(const(char)[] name, int pickAny)pAddSymbol, scope const ubyte[]base, scope const char*module_name, Locloc, ErrorSinkeSink);Reads an object module from
base[] and passes the names of any exported symbols to (*pAddSymbol)().Parameters
void delegate(const(char)[] name, int pickAny)pAddSymbolfunction to pass the names to
ubyte[]basearray of contents of object module
char*module_namename of the object module (used for error messages)
Locloclocation to use for error printing
ErrorSinkeSinkwhere the error messages go
-
Declaration
boolscanOmfLib(void delegate(char* name, void* base, size_t length)pAddObjModule, scope void*buf, size_tbuflen, uintpagesize);Scan a block of memory
buf[0..buflen], pulling out each OMF object module in it and sending the info in it to (*pAddObjModule).Return Value
truefor corrupt OMF data