[ELF] - Change error message text. NFC.

As suggested in review comments of D38170.

llvm-svn: 314392
This commit is contained in:
George Rimar 2017-09-28 09:29:03 +00:00
parent 32c99824a0
commit 0b4d10c8b3
2 changed files with 4 additions and 4 deletions

View File

@ -234,9 +234,9 @@ InputSection *InputSectionBase::getLinkOrderDep() const {
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;
}

View File

@ -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: