elf: escape invalid token string when reporting an error
This commit is contained in:
@@ -32,7 +32,7 @@ pub fn parse(scr: *LdScript, data: []const u8, elf_file: *Elf) Error!void {
|
||||
switch (tok.id) {
|
||||
.invalid => {
|
||||
try elf_file.reportParseError(scr.path, "invalid token in LD script: '{s}' ({d}:{d})", .{
|
||||
tok.get(data),
|
||||
std.fmt.fmtSliceEscapeLower(tok.get(data)),
|
||||
line,
|
||||
column,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user