diff options
| author | Eugene Leviant <eleviant@accesssoftek.com> | 2016-11-23 09:47:38 +0000 |
|---|---|---|
| committer | Eugene Leviant <eleviant@accesssoftek.com> | 2016-11-23 09:47:38 +0000 |
| commit | 3582ebf35e620c73a09e90a4a4cbfc04e5920256 (patch) | |
| tree | 797a13250b87862acfcef81b2b0c74e4f7a57e54 | |
| parent | 531df4fcef7ede296b5b7e9c4e7d296763eaeb67 (diff) | |
| download | bcm5719-llvm-3582ebf35e620c73a09e90a4a4cbfc04e5920256.tar.gz bcm5719-llvm-3582ebf35e620c73a09e90a4a4cbfc04e5920256.zip | |
[ELF] Fixup buffer pointer when writing synthetic sections
Differential revision: https://reviews.llvm.org/D26980
llvm-svn: 287751
| -rw-r--r-- | lld/ELF/InputSection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index b8946d8be8b..27d1033b2ec 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -532,7 +532,7 @@ template <class ELFT> void InputSection<ELFT>::writeTo(uint8_t *Buf) { return; if (auto *S = dyn_cast<SyntheticSection<ELFT>>(this)) { - S->writeTo(Buf); + S->writeTo(Buf + OutSecOff); return; } |

