forked from OSchip/llvm-project
[ELF] - Change error message text. NFC.
As suggested in review comments of D38170. llvm-svn: 314392
This commit is contained in:
parent
32c99824a0
commit
0b4d10c8b3
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue