[PATCH] D26980: [ELF] FIxup buffer pointer before writing synthetic section

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 01:57:41 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL287751: [ELF] Fixup buffer pointer when writing synthetic sections (authored by evgeny777).

Changed prior to commit:
  https://reviews.llvm.org/D26980?vs=78887&id=79045#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26980

Files:
  lld/trunk/ELF/InputSection.cpp


Index: lld/trunk/ELF/InputSection.cpp
===================================================================
--- lld/trunk/ELF/InputSection.cpp
+++ lld/trunk/ELF/InputSection.cpp
@@ -532,7 +532,7 @@
     return;
 
   if (auto *S = dyn_cast<SyntheticSection<ELFT>>(this)) {
-    S->writeTo(Buf);
+    S->writeTo(Buf + OutSecOff);
     return;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26980.79045.patch
Type: text/x-patch
Size: 346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161123/81de14fa/attachment.bin>


More information about the llvm-commits mailing list