Skip to content

Commit a1bbc93

Browse files
committed
Update error messages per review feedback.
1 parent a269770 commit a1bbc93

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lld/ELF/Arch/RISCV.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,8 +1505,8 @@ void RISCV::scanSectionImpl(InputSectionBase &sec, Relocs<RelTy> rels) {
15051505
} else if (!rvVendor.empty()) {
15061506
Err(ctx) << getErrorLoc(ctx, loc)
15071507
<< "unknown vendor-specific relocation (" << type.v
1508-
<< ") in vendor namespace \"" << rvVendor << "\" against symbol "
1509-
<< &sym;
1508+
<< ") in namespace '" << rvVendor << "' against symbol '" << &sym
1509+
<< "'";
15101510
rvVendor = "";
15111511
continue;
15121512
}

lld/test/riscv-vendor-relocations.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ TARGET:
1515
nop
1616

1717
# CHECK: error: {{.*}}:(.text+0x4): malformed consecutive R_RISCV_VENDOR relocations
18-
# CHECK: error: {{.*}}:(.text+0x4): unknown vendor-specific relocation (255) in vendor namespace "INVALID_VENDOR" against symbol TARGET
18+
# CHECK: error: {{.*}}:(.text+0x4): unknown vendor-specific relocation (255) in namespace 'INVALID_VENDOR' against symbol 'TARGET'

0 commit comments

Comments
 (0)