Still cant get anything to show up in the Thread Local Storage Directory
Alan Modra
amodra@bigpond.net.au
Wed Oct 15 00:33:00 GMT 2003
On Wed, Oct 15, 2003 at 06:53:23AM +0800, Jonathan Wilson wrote:
> Basicly, I need some code that:
> 1.finds __tls_entry
> 2.takes its VirtualAddress
> 3.stores that in DataDirectory[9].VirtualAddress
> 4.stores 18 (the size of the structure that the TLS directory must point
> to) in DataDirectory[9].Size
> and 5.somehow writes the resulting code out to the exe file.
>
> Someone must know the right way to do this...
Yes, there are people that know these sorts of things. They're usually
busy, and you seem full of questions..
A little digging on your part with grep and gdb would probably give you
the answers. From the other snippets of code you've posted, you seem
to have found the answers to 1-4. For 5, look at bfd/peXXigen.c
_bfd_XXi_swap_aouthdr_out.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list