Fix reading value of relocations symbol/section index from SDAS objects

This commit is contained in:
Rangi
2026-07-21 13:14:35 -04:00
parent d9c0d37fd5
commit 106ec399d5
+1 -2
View File
@@ -575,9 +575,8 @@ void sdobj_ReadFile(FileStackNode const &src, FILE *file, std::vector<Symbol> &f
expectRelocation();
uint16_t idx = readByte(where, token, numberBase);
expectRelocation();
idx |= static_cast<uint16_t>(readByte(where, token, numberBase));
idx |= static_cast<uint16_t>(readByte(where, token, numberBase)) << 8;
// Loudly fail on unknown flags
if (flags & (1 << RELOC_ZPAGE | 1 << RELOC_NPAGE)) {