mirror of
https://github.com/gbdev/rgbds.git
synced 2026-06-10 02:32:34 +00:00
Refactor section creation errors, and simplify output for single errors (#1964)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
error: Section already defined
|
||||
FATAL: Section "dup" already defined
|
||||
at duplicate-section-after-literal.asm(7)
|
||||
and also:
|
||||
at duplicate-section-after-literal.asm(5)
|
||||
FATAL: Cannot create section "dup" (1 error)
|
||||
at duplicate-section-after-literal.asm(7)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
error: Section already defined
|
||||
FATAL: Section "sec" already defined
|
||||
at duplicate-section.asm(4)
|
||||
and also:
|
||||
at duplicate-section.asm(2)
|
||||
FATAL: Cannot create section "sec" (1 error)
|
||||
at duplicate-section.asm(4)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at incompatible address $c002
|
||||
at fragment-align-mismatch.asm(2)
|
||||
FATAL: Cannot create section "aligned" (1 error)
|
||||
FATAL: Section "aligned" already declared as fixed at incompatible address $c002
|
||||
at fragment-align-mismatch.asm(2)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at incompatible address $0000
|
||||
at fragment-mismatch.asm(2)
|
||||
FATAL: Cannot create section "test" (1 error)
|
||||
FATAL: Section "test" already declared as fixed at incompatible address $0000
|
||||
at fragment-mismatch.asm(2)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared with incompatible 256-byte alignment (offset 0)
|
||||
at incompatible-alignment.asm(8)
|
||||
FATAL: Cannot create section "Test" (1 error)
|
||||
FATAL: Section "Test" already declared with incompatible 256-byte alignment (offset 0)
|
||||
at incompatible-alignment.asm(8)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
SECTION FRAGMENT "test", ROM0[$0000]
|
||||
|
||||
SECTION FRAGMENT "test", ROMX[$4000]
|
||||
@@ -0,0 +1,6 @@
|
||||
error: Section "test" already exists but with type `ROM0`
|
||||
at multiple-section-errors.asm(3)
|
||||
error: Section "test" already declared as fixed at incompatible address $0000
|
||||
at multiple-section-errors.asm(3)
|
||||
FATAL: Cannot create section "test" (2 errors)
|
||||
at multiple-section-errors.asm(3)
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at different address $c000
|
||||
at section-union-mismatch.asm(2)
|
||||
FATAL: Cannot create section "test" (1 error)
|
||||
FATAL: Section "test" already declared as fixed at different address $c000
|
||||
at section-union-mismatch.asm(2)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as `SECTION UNION`
|
||||
at section-union.asm(37)
|
||||
FATAL: Cannot create section "test" (1 error)
|
||||
FATAL: Section "test" already declared as `SECTION UNION`
|
||||
at section-union.asm(37)
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
error: Section already declared as fixed at incompatible address $c001
|
||||
at union-mismatch.asm(2)
|
||||
FATAL: Cannot create section "fixed" (1 error)
|
||||
FATAL: Section "fixed" already declared as fixed at incompatible address $c001
|
||||
at union-mismatch.asm(2)
|
||||
|
||||
@@ -4,7 +4,5 @@ FATAL: Section "conflicting alignment" is defined with 4-byte alignment (offset
|
||||
at section-fragment/align-conflict.asm(7)
|
||||
Linking aborted with 1 error
|
||||
---
|
||||
error: Section already declared as aligned to 4 bytes (offset 0)
|
||||
at <stdin>(18)
|
||||
FATAL: Cannot create section "conflicting alignment" (1 error)
|
||||
FATAL: Section "conflicting alignment" already declared as aligned to 4 bytes (offset 0)
|
||||
at <stdin>(18)
|
||||
|
||||
@@ -4,7 +4,5 @@ FATAL: Section "conflicting alignment" is defined with 4-byte alignment (offset
|
||||
at section-union/align-conflict.asm(7)
|
||||
Linking aborted with 1 error
|
||||
---
|
||||
error: Section already declared as aligned to 4 bytes (offset 0)
|
||||
at <stdin>(18)
|
||||
FATAL: Cannot create section "conflicting alignment" (1 error)
|
||||
FATAL: Section "conflicting alignment" already declared as aligned to 4 bytes (offset 0)
|
||||
at <stdin>(18)
|
||||
|
||||
@@ -4,7 +4,5 @@ FATAL: Section "conflicting alignment" is defined with 8-byte alignment (offset
|
||||
at section-union/align-ofs-conflict.asm(7)
|
||||
Linking aborted with 1 error
|
||||
---
|
||||
error: Section already declared with incompatible 8-byte alignment (offset 7)
|
||||
at <stdin>(18)
|
||||
FATAL: Cannot create section "conflicting alignment" (1 error)
|
||||
FATAL: Section "conflicting alignment" already declared with incompatible 8-byte alignment (offset 7)
|
||||
at <stdin>(18)
|
||||
|
||||
@@ -4,7 +4,5 @@ FATAL: Section "conflicting types" is defined with type `HRAM`, but also with ty
|
||||
at section-union/bad-types.asm(7)
|
||||
Linking aborted with 1 error
|
||||
---
|
||||
error: Section already exists but with type `HRAM`
|
||||
at <stdin>(18)
|
||||
FATAL: Cannot create section "conflicting types" (1 error)
|
||||
FATAL: Section "conflicting types" already exists but with type `HRAM`
|
||||
at <stdin>(18)
|
||||
|
||||
@@ -4,7 +4,5 @@ FATAL: Section "conflicting banks" is defined with bank 4, but also with bank 1
|
||||
at section-union/bank-conflict.asm(5)
|
||||
Linking aborted with 1 error
|
||||
---
|
||||
error: Section already declared with different bank 4
|
||||
at <stdin>(14)
|
||||
FATAL: Cannot create section "conflicting banks" (1 error)
|
||||
FATAL: Section "conflicting banks" already declared with different bank 4
|
||||
at <stdin>(14)
|
||||
|
||||
@@ -4,7 +4,5 @@ FATAL: Section "conflicting alignment" is defined with 8-byte alignment (offset
|
||||
at section-union/different-ofs.asm(7)
|
||||
Linking aborted with 1 error
|
||||
---
|
||||
error: Section already declared with incompatible 8-byte alignment (offset 7)
|
||||
at <stdin>(18)
|
||||
FATAL: Cannot create section "conflicting alignment" (1 error)
|
||||
FATAL: Section "conflicting alignment" already declared with incompatible 8-byte alignment (offset 7)
|
||||
at <stdin>(18)
|
||||
|
||||
@@ -4,7 +4,5 @@ FATAL: Section "conflicting address" is defined with address $beef, but also wit
|
||||
at section-union/org-conflict.asm(7)
|
||||
Linking aborted with 1 error
|
||||
---
|
||||
error: Section already declared as fixed at different address $beef
|
||||
at <stdin>(16)
|
||||
FATAL: Cannot create section "conflicting address" (1 error)
|
||||
FATAL: Section "conflicting address" already declared as fixed at different address $beef
|
||||
at <stdin>(16)
|
||||
|
||||
Reference in New Issue
Block a user