Dear Velko,
Velko wrote:
You need to compile your code using -mcmodel=large switch.
Thanks a lot for help. Now I fix it for GCC. However, make the NASM generate R_X86_64_32 in the other part of my program, the code language of which are both C and assembly, though I write [bits 64] in the code. The symbol which has got the type *_32 is extern to pass the value between C and asm. Then how to fix the rest? Is there any options like GCC?
I'll be grateful if there's another help.
EDIT: If there's no option, should I compile my own NASM?