Laurent Pinchart laurent.pinchart@skynet.be writes:
SafeDisc implements GetProcAddress internally, and verifies that the returned address lies between ImageBase and ImageBase + SizeOfImage. It fails if it doesn't.
In that case the easy way would be to take the highest address from the export table and use that. It would actually be a pretty good approximation. The correct way would be a linker script; this is relatively easy to make work on one platform, but a bit more painful to make work for all platforms.