Bug 234717

Summary: devel/fastcrc: does not build with lld as i386 system linker
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 214864    

Description Ed Maste freebsd_committer 2019-01-07 22:30:23 UTC
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.o:(.text+0x854)

fastcrc.asm needs to be rewritten to be PIC, or -z notext needs to be added to the link invocation.
Comment 2 Ed Maste freebsd_committer 2019-07-24 19:32:08 UTC
lld has been enabled as system linker for i386 on stable/12 in advance of 12.1 (as of a few minutes ago)