This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Still cant get anything to show up in the Thread Local StorageDirectory


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]