I am porting a piece of legacy Windows code to Linux, and it makes extensive use of FAR pointers (a mechanism which Linux does not use/need).
My first attempt merely changed the FAR pointer calls to regular pointer calls, but this has produced bad results (error-checking mechanisms in the code keep returning bad sizes). Anyone have any suggestions for porting FAR pointer calls to Linux? My second question is similiar; is there a way to restrict access to code or data memory segments in Linux so that they can only be viewed / modified / debugged / dumped to the actual program itself? In essence, I don't want anyone tinkering with the code when it is in memory. Any suggestions are appreciated. David
