summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/OutputSections.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 492f96bc0f2..a9236086a92 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -296,7 +296,8 @@ InterpSection<ELFT>::InterpSection()
}
template <class ELFT> void InterpSection<ELFT>::writeTo(uint8_t *Buf) {
- memcpy(Buf, Config->DynamicLinker.data(), Config->DynamicLinker.size());
+ StringRef S = Config->DynamicLinker;
+ memcpy(Buf, S.data(), S.size());
}
template <class ELFT>
OpenPOWER on IntegriCloud