mirror of
https://github.com/upx/upx.git
synced 2024-11-30 16:11:08 +00:00
Native alignment for the "load config" table
https://github.com/upx/upx/issues/556 modified: pefile.cpp
This commit is contained in:
parent
b7a5b9437a
commit
1050de5171
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user