This commit is contained in:
Christian Speckner 2024-07-13 21:50:45 +02:00
parent 21c80981cd
commit 0978806ae4
1 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ void ElfLinker::relocateInitArrays()
switch (section.type) { switch (section.type) {
case ElfParser::SHT_INIT_ARRAY: case ElfParser::SHT_INIT_ARRAY:
if (section.size % 4) ElfLinkError::raise("invalid init arrey"); if (section.size % 4) ElfLinkError::raise("invalid init array");
relocatedInitArrays[i] = initArraySize; relocatedInitArrays[i] = initArraySize;
initArraySize += section.size; initArraySize += section.size;
@ -306,7 +306,7 @@ void ElfLinker::relocateInitArrays()
break; break;
case ElfParser::SHT_PREINIT_ARRAY: case ElfParser::SHT_PREINIT_ARRAY:
if (section.size % 4) ElfLinkError::raise("invalid preinit arrey"); if (section.size % 4) ElfLinkError::raise("invalid preinit array");
relocatedPreinitArrays[i] = preinitArraySize; relocatedPreinitArrays[i] = preinitArraySize;
preinitArraySize += section.size; preinitArraySize += section.size;