[Bug 226980] openal-using ports fail to link when lld is the system linker

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 22 02:26:37 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226980

maskray <emacsray at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emacsray at gmail.com

--- Comment #63 from maskray <emacsray at gmail.com> ---
Position-dependent object files compiled for main executable cannot call
protected functions defined in DSOs (PLT cannot be created as otherwise address
uniqueness is not guaranteed), e.g.

/usr/bin/ld: error: cannot preempt symbol: alcGetIntegerv
>>> defined in /usr/local/lib/libopenal.so
>>> referenced by audio_openal.c
>>>               audio_openal.c.o:(openal_input)

alcGetIntegerv is STV_PROTECTED defined in a DSO. These object files for main
programs are incorrectly compiled without -fPIC/-fPIE. More appropriate fixes
might be add -fPIE to these programs depending on openal.

https://bugs.llvm.org//show_bug.cgi?id=30960 you'll get similar link errors if
you use modern binutils.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-games mailing list