[llvm-bugs] [Bug 50153] New: unsupported relocation type R_RISCV_COPY when using -mno-relax

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 28 12:04:15 PDT 2021


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

            Bug ID: 50153
           Summary: unsupported relocation type R_RISCV_COPY when using
                    -mno-relax
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: RISC-V
          Assignee: unassignedbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: asb at lowrisc.org, caij2003 at gmail.com,
                    craig.topper at gmail.com, jrtc27 at jrtc27.com,
                    llvm-bugs at lists.llvm.org, natechancellor at gmail.com,
                    srhines at google.com
            Blocks: 4068

via: https://github.com/ClangBuiltLinux/linux/issues/1023

$ cat head.s
_start :.dword _end - _start
$ clang --target=riscv64-linux-gnu -c -mno-relax head.s
head.s:1:16: error: Unsupported relocation type
_start :.dword _end - _start
               ^

Looks like it's a R_RISCV_COPY, for which there is no corresponding
llvm::RISCV::Fixups.


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
-- 
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/20210428/f43b52a5/attachment.html>


More information about the llvm-bugs mailing list