[Bug 264522] R_X86_64_REX_GOTPCRELX relocations are not supported in kernel modules

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 Jun 2022 15:39:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264522

            Bug ID: 264522
           Summary: R_X86_64_REX_GOTPCRELX relocations are not supported
                    in kernel modules
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: desk@justincady.com

As discussed in these reviews, R_X86_64_REX_GOTPCRELX relocations are not
supported in kernel modules:

https://reviews.llvm.org/D109090
https://reviews.llvm.org/D113443

Specifically, this is because the kernel module loader does not handle them.
This relocation type should be supported (at which point the workarounds in
FreeBSD's LLVM could potentially be removed).

The second review mentions filing a bug for this, but I could not find it via
search. I apologize if it's already been filed.

-- 
You are receiving this mail because:
You are the assignee for the bug.