Use automatic allocation for section data

This commit is contained in:
Rangi42
2024-02-28 20:54:33 -05:00
committed by Sylvie
parent 8fe6be19f1
commit 96f354026a
6 changed files with 16 additions and 40 deletions

View File

@@ -44,7 +44,7 @@ struct Section {
bool isAlignFixed;
uint16_t alignMask;
uint16_t alignOfs;
std::vector<uint8_t> *data; // Array of size `size`
std::vector<uint8_t> data; // Array of size `size`, or 0 if `type` does not have data
std::vector<struct Patch> patches;
// Extra info computed during linking
std::vector<struct Symbol> *fileSymbols;