From: Tormod Volden Date: Tue, 14 Apr 2015 21:23:10 +0000 (+0200) Subject: crt0_6809.s: Create a .header section for executables X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=af8e388135391cbea163f262c974d6b05f34bb19;p=FUZIX.git crt0_6809.s: Create a .header section for executables Signed-off-by: Tormod Volden --- diff --git a/Applications/util/dragon-nx32.link b/Applications/util/dragon-nx32.link index 604f017f..088d6765 100644 --- a/Applications/util/dragon-nx32.link +++ b/Applications/util/dragon-nx32.link @@ -1,5 +1,7 @@ define basesympat __sectionbase_%s__ define lensympat __sectionlen_%s__ -section .text 0x8000 +section .header load 0x8000 +section .text +section .text.startup section .data section .bss diff --git a/Library/libs/crt0_6809.s b/Library/libs/crt0_6809.s index 11e3ccf6..1f332c12 100644 --- a/Library/libs/crt0_6809.s +++ b/Library/libs/crt0_6809.s @@ -5,7 +5,7 @@ .globl _environ .globl ___argv - .area .text + .area .header start: jmp start2 .db 'F' @@ -23,6 +23,8 @@ start: jmp start2 .dw __sectionlen_.bss__ ; bss size info .dw 0 ; spare + .area .text + start2: ; FIXME clear BSS