mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
[yaml2obj][ELF] Refer to a section in the error message by its name not
index. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203899 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef3154042b
commit
9e30b78485
@ -326,7 +326,7 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) {
|
|||||||
unsigned Index;
|
unsigned Index;
|
||||||
if (SN2I.lookupSection(Sec.Link, Index)) {
|
if (SN2I.lookupSection(Sec.Link, Index)) {
|
||||||
errs() << "error: Unknown section referenced: '" << Sec.Link
|
errs() << "error: Unknown section referenced: '" << Sec.Link
|
||||||
<< "' at YAML section number " << i << ".\n";
|
<< "' at YAML section '" << Sec.Name << "'.\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
SHeader.sh_link = Index;
|
SHeader.sh_link = Index;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user