0

I need to know the feasibility of "mmaping" a virtualmemory and loading binary code into it and execute the binary code. The binary code (presented as shared library) may be mach format or elf format, which will be loaded into the memory through file-mapping way by our binary loade other than the apple's own unix binary loader.

Has someone tried it before? If you have any clue about that pls tell me, and we can discuss it more. By the way, does anyone know how to upload a shared library (not linked by app) to iphone simulator or device with iphone app developed together?

4

1 に答える 1

0

mmap()iPhoneで使えます。iOS SDK 契約は通常、動的コードの読み込みに反対しているため、アプリの出荷時に利用できなかったコードを提供するために使用することはおそらく許可されません。あなたはそれについて Apple と話したいと思うでしょうが、あなたがやりたいことは許可されないだろうと私は確信しています。

独自のコードローダーを提供する理由が本物かどうか、または iOS を使用して実際に問題を解決できるかどうかを検討してくださいdyld

于 2010-12-07T13:38:26.160 に答える