[llvm-bugs] [Bug 36674] New: clang is generating PLT relocations when building Linux kernel

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 9 08:58:25 PST 2018


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

            Bug ID: 36674
           Summary: clang is generating PLT relocations when building
                    Linux kernel
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: manojgupta at google.com
                CC: llvm-bugs at lists.llvm.org

Found when upgrading llvm in Chrome OS
(https://bugs.chromium.org/p/chromium/issues/detail?id=820140)

The issue is clang is generating PLT relocations that are not support5ed by
Linux kernel.

chromeos-kernel-4_4-4.4.120-r1398:   RELOCS 
arch/x86/realmode/rm/realmode.relocs

chromeos-kernel-4_4-4.4.120-r1398: Unsupported relocation type: R_386_PLT32 (4)
chromeos-kernel-4_4-4.4.120-r1398: make[4]: ***
[/build/squawks/tmp/portage/sys-kernel/chromeos-kernel-4_4-4.4.120-r1398/work/chromeos-kernel-4_4-4.4.120/arch/x86/realmode/rm/Makefile:68:
arch/x86/realmode/rm/realmode.relocs] Error 1
chromeos-kernel-4_4-4.4.120-r1398: make[4]: Target
'arch/x86/realmode/rm/realmode.bin' not remade because of errors.

-- 
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/20180309/f9bf7e55/attachment.html>


More information about the llvm-bugs mailing list