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>

--


Michel Fortin
[email protected]
http://michelf.com/

Reply via email to