fixed alignment handling typo

This commit is contained in:
László Molnár 2006-07-01 09:40:12 +02:00
parent 08962a74ab
commit fd56e2534c

View File

@ -520,8 +520,8 @@ int ElfLinker::addSection(const char *sname)
if (*sect == '+') // alignment
{
assert(tail);
if (unsigned l = (hex(sect[1]) - tail->offset - tail->size)
% hex(sect[2]))
if (unsigned l = (hex(sect[2]) - tail->offset - tail->size)
% hex(sect[1]))
{
align(l);
tail->size += l;