I'm trying to make a dynamic library with assembly code. So i convert my .asm files to .o with nasm (nasm -f elf64 filename.asm). And when i link them with ld (ld files.o -shared -o libasm.so -fPIC), it gives me an error ld: strstr.o: relocation R_X86_64_PC32 against symbol `strlen' can not be used when making a shared object; recompile with -fPIC
ld: final link failed: Bad value
. Could someone can help me, how to compile them ?
Thanks in advance.