The syntax for RIP-relative addressing works different in nasm. F.e.: lea rax, [rel label1]. There's also a directive to switch between rip relative addressing by default (DEFAULT REL) and back to ...