From 08be61407b774cdd98e445697b3ada69fc06da11 Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Tue, 13 Oct 2015 18:55:01 +0000 Subject: [PATCH] [ELF2] Fixup comment about section sorting requirements As Rafael pointed out in his review of r250100, the NOBITS check is no longer the last requirement. llvm-svn: 250206 --- lld/ELF/Writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index f78c52a8fc75..484989bb630c 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -322,7 +322,7 @@ static bool compareOutputSections(OutputSectionBase *A, return BIsExec; // If we got here we know that both A and B are in the same PT_LOAD. - // The last requirement we have is to put nobits section last. The + // The next requirement we have is to put nobits sections last. The // reason is that the only thing the dynamic linker will see about // them is a p_memsz that is larger than p_filesz. Seeing that it // zeros the end of the PT_LOAD, so that has to correspond to the