z80: crt0 - let binman fill in the header properly
authorAlan Cox <alan@linux.intel.com>
Wed, 13 Dec 2017 14:13:42 +0000 (14:13 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 13 Dec 2017 14:13:42 +0000 (14:13 +0000)
Library/libs/crt0.s
Library/libs/crt0nostdio.s

index a817c79..b0ffdcd 100644 (file)
@@ -46,9 +46,10 @@ start:               jp start2
 ;
                .db 0x01                ; page to load at
                .dw 0                   ; chmem ("0 - 'all'")
-               .dw s__INITIALIZED      ; gives us code size info
-               .dw s__DATA             ; gives us data size info
-               .dw l__DATA             ; bss size info
+               ; These three are set by binman
+               .dw 0                   ; code
+               .dw 0                   ; data
+               .dw 0                   ; bss size
                .dw 0                   ; spare
 
 start2:                ld hl, #l__DATA - 1      ; work around linker limit
index 1ed5c7d..288e2a8 100644 (file)
@@ -45,9 +45,10 @@ start:               jp start2
 ;
                .db 0x01                ; page to load at
                .dw 0                   ; chmem ("0 - 'all'")
-               .dw s__INITIALIZED      ; gives us code size info
-               .dw s__DATA             ; gives us data size info
-               .dw l__DATA             ; bss size info
+               ; These three are set by binman
+               .dw 0                   ; code
+               .dw 0                   ; data
+               .dw 0                   ; bss size
                .dw 0                   ; spare
 
 start2:                ld hl, #l__DATA - 1      ; work around linker limit