[llvm-bugs] [Bug 26878] New: "unrecognized reloc 22" error linking libclang_rt.asan-x86_64.so with lld

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 8 07:05:11 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26878

            Bug ID: 26878
           Summary: "unrecognized reloc 22" error linking
                    libclang_rt.asan-x86_64.so with lld
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Attempting to build the asan runtime with lld as the linker on FreeBSD fails
with:

[3/4] Linking CXX shared library lib/c...lib/freebsd/libclang_rt.asan-x86_64.so
FAILED: : && /usr/bin/CC  -fPIC -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor
-std=c++11 -fcolor-diagnostics -fdata-sections -Wall -std=c++11  -fuse-ld=lld
-Wl,-z,origin  -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer
-funwind-tables -fno-stack-protector -fvisibility=hidden
-fvisibility-inlines-hidden -fno-lto -O3 -gline-tables-only -Wno-gnu
-Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti
-ftls-model=initial-exec
-Wl,--version-script,/tank/emaste/src/llvm/build-lld-selfhost2/projects/compiler-rt/lib/asan/clang_rt.asan-dynamic-x86_64.vers
-shared -Wl,-soname,libclang_rt.asan-x86_64.so -o
lib/clang/3.9.0/lib/freebsd/libclang_rt.asan-x86_64.so
projects/compiler-rt/lib/interception/CMakeFiles/RTInterception.x86_64.dir/interception_linux.cc.o
[...]
projects/compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_cxx.x86_64.dir/ubsan_type_hash_win.cc.o
-L/usr/local/lib -lc -lrt -lm -lpthread -lstdc++ -Wl,-rpath,"\$ORIGIN/../lib"
&& :
unrecognized reloc 22

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160308/ad4f4ecc/attachment.html>


More information about the llvm-bugs mailing list