I\'m porting a shared library from 32-bit to 64-bit. It\'s composed of some assembly (written for NASM) that exports several procedures and a little bit of higher-level C gl
I've solved it! In my case the relocations resulted from:
1) libc
calls, which I solved by appending wrt ..plt
to libc
calls, e.g. call rand wrt ..plt
,
2) references to constants placed within the code, which needed to change from e.g. push MASK_RGB
to push ptr [rel MASK_RGB]
(where ptr
is my own type that aliases to the native word type for the given platform).