mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 19:22:05 +00:00
Test RGBLINK on SDCC object files (#1479)
This commit is contained in:
12
test/link/sdcc/no-script/a.asm
Normal file
12
test/link/sdcc/no-script/a.asm
Normal file
@@ -0,0 +1,12 @@
|
||||
SECTION "entry", ROM0[$0100]
|
||||
jp start
|
||||
|
||||
SECTION "header", ROM0[$0104]
|
||||
ds $150 - $104, 0
|
||||
|
||||
SECTION "start", ROM0
|
||||
start:
|
||||
ld de, 1234
|
||||
call _function ; de <- 1234 * 2
|
||||
ld b, b ; breakpoint
|
||||
stop
|
||||
5
test/link/sdcc/no-script/b.c
Normal file
5
test/link/sdcc/no-script/b.c
Normal file
@@ -0,0 +1,5 @@
|
||||
// sdcc -c -msm83 -o b.rel b.c
|
||||
|
||||
int function(int de) {
|
||||
return de * 2;
|
||||
}
|
||||
19
test/link/sdcc/no-script/b.rel
Normal file
19
test/link/sdcc/no-script/b.rel
Normal file
@@ -0,0 +1,19 @@
|
||||
XL3
|
||||
H 9 areas 2 global symbols
|
||||
M b
|
||||
O -msm83
|
||||
S .__.ABS. Def000000
|
||||
A _CODE size 6 flags 0 addr 0
|
||||
S _function Def000000
|
||||
A _DATA size 0 flags 0 addr 0
|
||||
A _INITIALIZED size 0 flags 0 addr 0
|
||||
A _DABS size 0 flags 8 addr 0
|
||||
A _HOME size 0 flags 0 addr 0
|
||||
A _GSINIT size 0 flags 0 addr 0
|
||||
A _GSFINAL size 0 flags 0 addr 0
|
||||
A _INITIALIZER size 0 flags 0 addr 0
|
||||
A _CABS size 0 flags 8 addr 0
|
||||
T 00 00 00
|
||||
R 00 00 00 00
|
||||
T 00 00 00 6B 62 29 4D 44 C9
|
||||
R 00 00 00 00
|
||||
8
test/link/sdcc/no-script/out.err
Normal file
8
test/link/sdcc/no-script/out.err
Normal file
@@ -0,0 +1,8 @@
|
||||
error: Section "_INITIALIZER" has not been assigned a type by a linker script
|
||||
error: Section "_GSFINAL" has not been assigned a type by a linker script
|
||||
error: Section "_GSINIT" has not been assigned a type by a linker script
|
||||
error: Section "_HOME" has not been assigned a type by a linker script
|
||||
error: Section "_INITIALIZED" has not been assigned a type by a linker script
|
||||
error: Section "_DATA" has not been assigned a type by a linker script
|
||||
error: Section "_CODE" has not been assigned a type by a linker script
|
||||
Linking failed with 7 errors
|
||||
Reference in New Issue
Block a user