MakePEF: set weak flag on individual symbols

This commit is contained in:
Wolfgang Thaller 2019-11-05 22:13:56 +01:00
parent e56fc8b9c5
commit d48e1c4798

View File

@ -458,7 +458,9 @@ void mkpef(const std::string& inFn, const std::string& outFn)
for(unsigned j=0;j<importLibs[i].imports.size();j++)
{
PEFImportedSymbol sym;
sym.classAndName = PEFComposeImportedSymbol(kPEFTVectorSymbol /* ### */,
uint8_t weakflag = importLibs[i].weak ? 0x80 : 0;
sym.classAndName = PEFComposeImportedSymbol(weakflag | kPEFTVectorSymbol /* ### */,
importLibs[i].symNameOffsets[j]);
eswap(&sym);
out.write((char*)&sym, sizeof(sym));