Format linker script error backtraces the same way as others (#1792)

This commit is contained in:
Rangi
2025-08-12 16:58:17 -04:00
committed by GitHub
parent 1bf1219e07
commit 50d0b101c3
28 changed files with 181 additions and 101 deletions

View File

@@ -14,6 +14,7 @@
%code {
#include "link/lexer.hpp"
#include "link/layout.hpp"
#include "link/warning.hpp"
yy::parser::symbol_type yylex(); // Provided by layout.cpp
}
@@ -110,5 +111,5 @@ optional:
/******************** Error handler ********************/
void yy::parser::error(std::string const &msg) {
lexer_Error("%s", msg.c_str());
scriptError("%s", msg.c_str());
}