* the 'linking' section is a section, not a subsection. Fix error messages.

This commit is contained in:
Nikolay Nikolov 2023-12-26 15:07:42 +02:00
parent 9063c3c0ed
commit e7f6da4cb0

View File

@ -2253,12 +2253,12 @@ implementation
Result:=False;
if not ReadUleb32(Version) then
begin
InputError('Error reading the version of the ''linking'' subsection');
InputError('Error reading the version of the ''linking'' section');
exit;
end;
if Version<>ExpectedVersion then
begin
InputError('The ''linking'' subsection has an unsupported version (expected version ' + tostr(ExpectedVersion) + ', got version ' + tostr(Version) + ')');
InputError('The ''linking'' section has an unsupported version (expected version ' + tostr(ExpectedVersion) + ', got version ' + tostr(Version) + ')');
exit;
end;
while AReader.Pos<(SectionStart+SectionSize) do