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

            Bug ID: 27880
           Summary: lld does not handle "3-in-1" relocations used by MIPS
                    N64 ABI
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedb...@nondot.org
          Reporter: ema...@freebsd.org
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Attempting to build FreeBSD/mips64 with LLD fails when linking libc.so, with
many "relocation Unknown cannot be used when making a shared object; recompile
with -fPIC." errors.

The MIPS N64 ABI includes three separate relocation types in one rel/rela
entry, encoded as three bytes in the standard type field (per other
architectures) of r_info.

For example, the type field could contain 0x51807, which is
0x07 R_MIPS_GPREL16
0x18 R_MIPS_SUB
0x05 R_MIPS_HI16

(The error reports "relocation Unknown" because of course there's no one MIPS
relocation with type 0x51807)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to