]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lld: set sh_link and sh_info for .rela.plt sections
authorEd Maste <emaste@FreeBSD.org>
Thu, 11 Oct 2018 13:19:17 +0000 (13:19 +0000)
committerEd Maste <emaste@FreeBSD.org>
Thu, 11 Oct 2018 13:19:17 +0000 (13:19 +0000)
commitb371a9f082825a014a90453af9793eed88522e06
tree50cc1da95c08d93859627a032e7d4f5c4a17c033
parent43f8d28c373bc8b78b4ad83366cabdb08a4f04ae
lld: set sh_link and sh_info for .rela.plt sections

ELF spec says that for SHT_REL and SHT_RELA sh_link should reference the
associated string table and sh_info should reference the "section to
which the relocation applies."  ELF Tool Chain's elfcopy / strip use
this (in part) to control whether or not the relocation entry is copied
to the output.

LLVM PR 37538 https://bugs.llvm.org/show_bug.cgi?id=37538

Approved by: re (kib)
Obtained from: llvm r344226 (backported for 6.0)
contrib/llvm/tools/lld/ELF/SyntheticSections.cpp
lib/clang/include/lld/Common/Version.inc