nasm -f elf fastcrc.asm
ld -o libfcrc.so.1 -shared -soname libfcrc.so.1 fastcrc.o
ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in fastcrc.o
>>> referenced by fastcrc.asm
fastcrc.asm needs to be rewritten to be PIC, or -z notext needs to be added to the link invocation.
lld has been enabled as system linker for i386 on stable/12 in advance of 12.1 (as of a few minutes ago)