Context post here Relocation error against undefined symbo - C++ Forum
Have you read the NASM manual?
NASM - The Netwide Assembler
In particular
NASM - The Netwide Assembler
In assembler, you have to do all the grunt work yourself.
There's no magic wand you can just wave at the command line, and voila, position independent code.