refuse compressing files which have tls callbacks
committer: ml1050 <ml1050> 980113870 +0000
This commit is contained in:
parent
b7f0187e9c
commit
d5dd445a06
@ -918,6 +918,8 @@ void PackW32Pe::processTls(Interval *iv) // pass 1
|
||||
return;
|
||||
|
||||
const tls * const tlsp = (const tls*) (ibuf + IDADDR(PEDIR_TLS));
|
||||
if (tlsp->callbacks) // note: callbacks are not implemented on windoze 9x
|
||||
throwCantPack("tls callbacks are not supported");
|
||||
unsigned tlsdatastart = tlsp->datastart - ih.imagebase;
|
||||
unsigned tlsdataend = tlsp->dataend - ih.imagebase;
|
||||
|
||||
@ -967,7 +969,7 @@ void PackW32Pe::processTls(Reloc *rel,const Interval *iv,unsigned newaddr) // pa
|
||||
|
||||
tlsp->datastart = newaddr + sizeof(tls) + ih.imagebase;
|
||||
tlsp->dataend = newaddr + sotls + ih.imagebase;
|
||||
tlsp->callbacks = 0; // note: callbacks are not implemented in windoze
|
||||
tlsp->callbacks = 0; // note: callbacks are not implemented on windoze 9x
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user