View Single Post
  #6  
Old 10-10-2005, 18:01
eugene_i
 
Posts: n/a
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.
Reply With Quote