Native alignment for the "load config" table

https://github.com/upx/upx/issues/556
	modified:   pefile.cpp
This commit is contained in:
John Reiser 2022-01-15 06:45:47 -08:00 committed by Markus F.X.J. Oberhumer
parent b7a5b9437a
commit 1050de5171

View File

@ -2549,7 +2549,7 @@ void PeFile::pack0(OutputFile *fo, ht &ih, ht &oh,
processTls(&rel,&tlsiv,ic);
ODADDR(PEDIR_TLS) = sotls ? ic : 0;
ODSIZE(PEDIR_TLS) = sotls ? (sizeof(LEXX) == 4 ? 0x18 : 0x28) : 0;
ic = ALIGN_UP(ic + sotls, 4u);
ic = ALIGN_UP(ic + sotls, (unsigned)sizeof(LEXX));
processLoadConf(&rel, &loadconfiv, ic);
ODADDR(PEDIR_LOADCONF) = soloadconf ? ic : 0;