![]() |
|
#6
|
|||
|
|||
|
The position independent code is the general solution. Your code shouldn't contain any relocations and imported function calls, such as OS API. Organizing code in the single section and avoiding global variables resolves the problem with relocations. If you need to make a call to OS API function you should allocate a structure in the target process and fill it in with pointers to API required or patch your code with these addresses.
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Possible to inject new menus into GUIs? | binarylaw | General Discussion | 8 | 03-06-2020 17:51 |
| How to inject code into a process? | jonwil | General Discussion | 7 | 06-01-2005 23:23 |
| Very Easy way to Inject a Dll | Rhodium | General Discussion | 9 | 10-28-2004 16:52 |