I'm looking for some help/information on how to handle Thread Local Storage correctly from an exe packer. I have written a basic packer in C/C++ (no asm) and it is working with basic compression of code/data/resource sections etc.. but i am having problems supporting delphi apps due to TLS directory entries.
I have been trying to follow tutorial by bigboote, but it seems a little vague on exactly what i need to do to be able to support TLS correctly, and the really strange thing i have noticed is my compressed exe crash when i run, but when i try and debug in olly, it runs ok

maybe olly is doing some support for TLS from the TLS directory in the PE header?
thanks
--
bedrock