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: New
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 mailing list
URL:
Keywords:
Depends on:
Blocks: 214864
  Show dependency treegraph
 
Reported: 2019-01-07 22:30 UTC by Ed Maste
Modified: 2019-01-07 22:30 UTC (History)
0 users

See Also:


Attachments

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.