diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-05-20 21:39:07 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-05-20 21:39:07 +0000 |
| commit | f57a5905d37488111fef9c048e538a00df6ad1e9 (patch) | |
| tree | 2f539400cf139943e6c3cd03d3c45f29cf0f3ffb | |
| parent | 4b735c54adc2cdad7f096ebebcd0ca0794b21bde (diff) | |
| download | bcm5719-llvm-f57a5905d37488111fef9c048e538a00df6ad1e9.tar.gz bcm5719-llvm-f57a5905d37488111fef9c048e538a00df6ad1e9.zip | |
Simplify. NFC.
llvm-svn: 270281
| -rw-r--r-- | lld/ELF/OutputSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index d613df7ccf3..abfd32c0b7d 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -269,11 +269,11 @@ PltSection<ELFT>::PltSection() } template <class ELFT> void PltSection<ELFT>::writeTo(uint8_t *Buf) { - size_t Off = 0; // At beginning of PLT, we have code to call the dynamic linker // to resolve dynsyms at runtime. Write such code. Target->writePltZero(Buf); - Off += Target->PltZeroSize; + size_t Off = Target->PltZeroSize; + for (auto &I : Entries) { const SymbolBody *B = I.first; unsigned RelOff = I.second; |

