Make sectionMap not extern

This commit is contained in:
Rangi42
2025-07-21 20:20:04 -04:00
parent c83b87e0a0
commit eea532ded1
3 changed files with 3 additions and 6 deletions

View File

@@ -38,9 +38,9 @@ struct SectionStackEntry {
std::stack<UnionStackEntry> unionStack;
};
std::deque<Section> sectionList;
std::unordered_map<std::string, size_t> sectionMap; // Indexes into `sectionList`
Section *currentSection = nullptr;
std::deque<Section> sectionList;
static std::unordered_map<std::string, size_t> sectionMap; // Indexes into `sectionList`
static uint32_t curOffset; // Offset into the current section (see `sect_GetSymbolOffset`)