PE: Fix has_oxrelocs (TLS always has oxrelocs)

This commit is contained in:
Kornel Pal
2021-12-31 20:45:28 +01:00
committed by Markus F.X.J. Oberhumer
parent 2e64a277f8
commit 620955a724
+1 -1
View File
@@ -2485,7 +2485,7 @@ void PeFile::pack0(OutputFile *fo, ht &ih, ht &oh,
getLoaderSection("UPX1HEAD",(int*)&ic);
identsize += ic;
const bool has_oxrelocs = !opt->win32_pe.strip_relocs && (use_stub_relocs || tlsiv.ivnum || loadconfiv.ivnum);
const bool has_oxrelocs = !opt->win32_pe.strip_relocs && (use_stub_relocs || sotls || loadconfiv.ivnum);
const bool has_ncsection = has_oxrelocs || soimpdlls || soexport || soresources;
const unsigned oobjs = last_section_rsrc_only ? 4 : has_ncsection ? 3 : 2;
////pe_section_t osection[oobjs];