From af8e388135391cbea163f262c974d6b05f34bb19 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Tue, 14 Apr 2015 23:23:10 +0200 Subject: [PATCH] crt0_6809.s: Create a .header section for executables Signed-off-by: Tormod Volden --- Applications/util/dragon-nx32.link | 4 +++- Library/libs/crt0_6809.s | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.34.1