summaryrefslogtreecommitdiff
path: root/lld/ELF/Writer.h
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-12-01 09:04:52 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-12-01 09:04:52 +0000
commit7eab1000e066d4fea9cf9c00487f09c7a9ed3df0 (patch)
treedcfd8e75278919021aafd039dba6565a9806041e /lld/ELF/Writer.h
parentbd56c58bafc83c93ec33a2350961973d8e12853e (diff)
[ELF] - Produce relocation section name consistent with output section name when --emit-reloc used with linker script.
This is for "Bug 35474 - --emit-relocs produces wrongly-named reloc sections". LLD currently for scripts like: .text.boot : { *(.text.boot) } emits relocation section with name .rela.text because does not take redefined name of output section into account and builds section name using rules for non-scripted case. Patch fixes this oddness. Differential revision: https://reviews.llvm.org/D40652
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r--lld/ELF/Writer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h
index 9f6cff36f30..49490baa518 100644
--- a/lld/ELF/Writer.h
+++ b/lld/ELF/Writer.h
@@ -46,7 +46,7 @@ struct PhdrEntry {
bool HasLMA = false;
};
-llvm::StringRef getOutputSectionName(llvm::StringRef Name);
+llvm::StringRef getOutputSectionName(InputSectionBase *S);
template <class ELFT> uint32_t calcMipsEFlags();