need help resolving symbols using twolevel hints table
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com If anyone has any advice or suggestions, please let me know. Thanks! Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I'm having difficulty understanding how to use the twolevel hints table to resolve undefined symbols. I'm not sure what exactly the itoc member of the twolevel hints structure represents. For example, if I have an executable image, which has an undefined symbol such as _printf, after I determine which library image it's located in (from the n_desc value of the nlist struct), do I then obtain the tocoff value from the dysymtab_command of this library, and add the itoc to this value, then read the memory found at this location into a dylib_table_of_contents struct, and then obtain the symbol_index member, which will indicate the index of the _printf symbol within the symbol table of the shared library? Or is this completely wrong? P.S. Sorry if this question has been answered in the lists before, but I can't seem to find the search option on lists.apple.com. _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt... Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Garey