Handle -Wtruncation for link-time jr values

Fixes #2028
This commit is contained in:
Rangi
2026-07-21 14:51:58 -04:00
parent 50678d0942
commit ec5e6cbabb
7 changed files with 24 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
SECTION "jr", ROM0
jr CONSTANT
+1
View File
@@ -0,0 +1 @@
EXPORT DEF CONSTANT EQU $1234_0078
+2
View File
@@ -0,0 +1,2 @@
warning: Value $12340078 is not 16-bit [-Wtruncation]
at jr-truncation/a.asm(2)
Binary file not shown.
+2
View File
@@ -0,0 +1,2 @@
; File generated by rgblink
12340078 CONSTANT