On 2011-12-13 17:57, Michel Fortin wrote:
On 2011-12-13 14:53:22 +0000, Jacob Carlborg <[email protected]> said:
In this callback I extract module infos, exception handling tables and
TLS data from the mach_header. This is now where the problem comes. I
need an associative array which maps mach_headers to a struct (or
similar) containing module infos, exception handling tables and TLS
data. But I don't have an associative array that works this earily in
the initialization phase of the runtime.
Given this code is going to be specific to OS X, maybe you could use a
CFMutableDictionary instead of rewriting your own hash table.
<http://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFMutableDictionaryRef/Reference/reference.html>
That's a good idea, I didn't think about that. I often forget about the
Mac specific API's.
I'm not sure, but we might need an associative array for the other
platforms as well.
--
/Jacob Carlborg