Fix included linker scripts with no newline at EOF (#2011)

This commit is contained in:
Rangi
2026-07-06 14:01:40 -04:00
committed by GitHub
parent 0adbb92e50
commit be3fc61859
5 changed files with 19 additions and 16 deletions
@@ -0,0 +1,2 @@
section "test", rom0[1337]
label:: dw label
@@ -0,0 +1 @@
rom0 ; no newline after this
@@ -0,0 +1,2 @@
include "linkerscript-no-newline-eof.inc"
"test" ; no newline after this
@@ -0,0 +1,3 @@
error: The linker script assigns section "test" to address $0000, but it was already at $0539
at linkerscript-no-newline-eof.link(2)
Linking failed with 1 error