[llvm-bugs] [Bug 35751] New: .dynamic relocation entries omitted if output contains only IFUNC relocations
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 26 10:30:12 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35751
Bug ID: 35751
Summary: .dynamic relocation entries omitted if output contains
only IFUNC relocations
Product: lld
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: emaste at freebsd.org
CC: llvm-bugs at lists.llvm.org
When linking output that contains only ifunc relocations (e.g.
R_X86_64_IRELATIVE) we miss the the DT_PLTREL, DT_JMPREL, DT_PLTGOT,
DT_PLTRELSZ .dynamic entries.
There is a reproducer at https://kib.kiev.ua/kib/kernel.tar. This is a patched
FreeBSD kernel using ifuncs.
We emit DT_PLTREL etc. only if InX::RelaPlt is not empty, but ifunc relocations
are stored in RelaIplt.
--
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/20171226/1cdeba15/attachment.html>
More information about the llvm-bugs
mailing list