Bug 234717 - devel/fastcrc: does not build with lld as i386 system linker
Summary: devel/fastcrc: does not build with lld as i386 system linker
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Blocks: 214864
  Show dependency treegraph
Reported: 2019-01-07 22:30 UTC by Ed Maste
Modified: 2020-05-26 01:21 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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)
Comment 3 Ed Maste freebsd_committer 2020-05-26 01:21:57 UTC
Addressed by tobik in r501622