Use automatic allocation for section data

This commit is contained in:
Rangi42
2024-02-22 15:45:09 -05:00
committed by Sylvie
parent 72e9f55368
commit dec1811d20
3 changed files with 5 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
#include <deque>
#include <stdint.h>
#include <vector>
#include "linkdefs.hpp"
#include "platform.hpp" // NONNULL
@@ -38,7 +39,7 @@ struct Section {
uint8_t align; // Exactly as specified in `ALIGN[]`
uint16_t alignOfs;
std::deque<struct Patch> patches;
uint8_t *data;
std::vector<uint8_t> data;
};
struct SectionSpec {