diff options
author | Rui Ueyama <ruiu@google.com> | 2016-07-01 10:42:25 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-07-01 10:42:25 +0000 |
commit | 52c4e17f8af7cceb7f22a5fd38ee98e955047d27 (patch) | |
tree | 904f2e3759f148a01540fb9cd5e0fd4b29df8ed2 | |
parent | 467c4d5538e877a8aa5ccbfe88c20ec5d82ad5ad (diff) | |
download | bcm5719-llvm-52c4e17f8af7cceb7f22a5fd38ee98e955047d27.tar.gz bcm5719-llvm-52c4e17f8af7cceb7f22a5fd38ee98e955047d27.zip |
Remove trailing whitespaces.
llvm-svn: 274343
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 6 | ||||
-rw-r--r-- | lld/ELF/Writer.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index d10fc5bc629..7351d16b3ac 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -221,7 +221,7 @@ void LinkerScript<ELFT>::assignAddresses( } // Assign addresses as instructed by linker script SECTIONS sub-commands. - Dot = Out<ELFT>::ElfHeader->getSize() + Out<ELFT>::ProgramHeaders->getSize(); + Dot = Out<ELFT>::ElfHeader->getSize() + Out<ELFT>::ProgramHeaders->getSize(); uintX_t MinVA = std::numeric_limits<uintX_t>::max(); uintX_t ThreadBssOffset = 0; @@ -249,13 +249,13 @@ void LinkerScript<ELFT>::assignAddresses( if (Sec->getFlags() & SHF_ALLOC) { Dot = alignTo(Dot, Sec->getAlignment()); Sec->setVA(Dot); - MinVA = std::min(MinVA, Dot); + MinVA = std::min(MinVA, Dot); Dot += Sec->getSize(); continue; } } } - + // ELF and Program headers need to be right before the first section in memory. // Set their addresses accordingly. MinVA = alignDown(MinVA - Out<ELFT>::ElfHeader->getSize() - diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 799580d9a27..cf58ab89571 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1131,9 +1131,9 @@ template <class ELFT> void Writer<ELFT>::fixSectionAlignments() { // list, but have them to simplify the code. template <class ELFT> void Writer<ELFT>::fixHeaders() { uintX_t BaseVA = ScriptConfig->DoLayout ? 0 : Target->getVAStart(); - Out<ELFT>::ElfHeader->setVA(BaseVA); + Out<ELFT>::ElfHeader->setVA(BaseVA); uintX_t Off = Out<ELFT>::ElfHeader->getSize(); - Out<ELFT>::ProgramHeaders->setVA(Off + BaseVA); + Out<ELFT>::ProgramHeaders->setVA(Off + BaseVA); } // Assign VAs (addresses at run-time) to output sections. |