[llvm-bugs] [Bug 27880] New: lld does not handle "3-in-1" relocations used by MIPS N64 ABI
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 25 10:26:20 PDT 2016
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: unassignedbugs at nondot.org
Reporter: emaste at freebsd.org
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160525/153fe31e/attachment.html>
More information about the llvm-bugs
mailing list