authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-12-05 14:39:56+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-12-05 14:39:56+01:00
loge3592281da4626dfcc959d0102289f394b54adf5
tree9fa8e50cfaed2d57d2d9bf1ca02ea7ef396f371f
parente349bb2b66ec25cfa57860fdf690333704eb7c96

elf: escape invalid token string when reporting an error


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Elf/LdScript.zig+1-1
......@@ -32,7 +32,7 @@ pub fn parse(scr: *LdScript, data: []const u8, elf_file: *Elf) Error!void {
3232 switch (tok.id) {
3333 .invalid => {
3434 try elf_file.reportParseError(scr.path, "invalid token in LD script: '{s}' ({d}:{d})", .{
35 tok.get(data),
35 std.fmt.fmtSliceEscapeLower(tok.get(data)),
3636 line,
3737 column,
3838 });