Support more syntax in linkerscripts (#1752)

* No need to use `locale`s

* Implement octal numbers, `_` digit separators, and `0x/0b/0o` prefixes in linkerscripts

* Refactor some functions out of `yylex`

* Support `\0` in linkerscripts
This commit is contained in:
Rangi
2025-07-16 15:00:02 -04:00
committed by GitHub
parent cf6e5fec63
commit 7f24d46d44
7 changed files with 209 additions and 109 deletions

View File

@@ -1,2 +1,2 @@
error: script-num-fmt.link(5): Cannot decrease the current address (from $002a to $0029)
error: script-num-fmt.link(9): Cannot decrease the current address (from $002a to $0029)
Linking failed with 1 error