prettify SymbolInfo array

This commit is contained in:
Joshua Warner 2012-04-30 12:44:18 -06:00
parent 2fa7fa0e83
commit 99bc9b1d55

View File

@ -52,11 +52,10 @@ writeObject(uint8_t* data, size_t size, OutputStream* out, const char* startName
return false;
}
SymbolInfo symbols[2];
symbols[0].name = startName;
symbols[0].addr = 0;
symbols[1].name = endName;
symbols[1].addr = size;
SymbolInfo symbols[] = {
SymbolInfo(0, startName),
SymbolInfo(size, endName)
};
unsigned accessFlags = (writable ? Platform::Writable : 0) | (executable ? Platform::Executable : 0);