[lld] r314392 - [ELF] - Change error message text. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 28 02:29:03 PDT 2017
Author: grimar
Date: Thu Sep 28 02:29:03 2017
New Revision: 314392
URL: http://llvm.org/viewvc/llvm-project?rev=314392&view=rev
Log:
[ELF] - Change error message text. NFC.
As suggested in review comments of D38170.
Modified:
lld/trunk/ELF/InputSection.cpp
lld/trunk/test/ELF/section-metadata-err.s
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=314392&r1=314391&r2=314392&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Thu Sep 28 02:29:03 2017
@@ -234,9 +234,9 @@ InputSection *InputSectionBase::getLinkO
InputSectionBase *L = File->getSections()[Link];
if (auto *IS = dyn_cast<InputSection>(L))
return IS;
- error(
- "Merge and .eh_frame sections are not supported with SHF_LINK_ORDER " +
- toString(L));
+ error("a section with SHF_LINK_ORDER should not refer a non-regular "
+ "section: " +
+ toString(L));
}
return nullptr;
}
Modified: lld/trunk/test/ELF/section-metadata-err.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/section-metadata-err.s?rev=314392&r1=314391&r2=314392&view=diff
==============================================================================
--- lld/trunk/test/ELF/section-metadata-err.s (original)
+++ lld/trunk/test/ELF/section-metadata-err.s Thu Sep 28 02:29:03 2017
@@ -3,7 +3,7 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
-# CHECK: error: Merge and .eh_frame sections are not supported with SHF_LINK_ORDER {{.*}}section-metadata-err.s.tmp.o:(.foo)
+# CHECK: error: a section with SHF_LINK_ORDER should not refer a non-regular section: {{.*}}section-metadata-err.s.tmp.o:(.foo)
.global _start
_start:
More information about the llvm-commits
mailing list