This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Still cant get anything to show up in the Thread Local StorageDirectory
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jonathan Wilson <jonwil at tpgi dot com dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 15 Oct 2003 09:37:38 +0930
- Subject: Re: Still cant get anything to show up in the Thread Local StorageDirectory
- References: <3F8C7E63.4000005@tpgi.com.au>
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