crt0_6809.s: Create a .header section for executables
authorTormod Volden <debian.tormod@gmail.com>
Tue, 14 Apr 2015 21:23:10 +0000 (23:23 +0200)
committerAlan Cox <alan@linux.intel.com>
Wed, 15 Apr 2015 11:35:21 +0000 (12:35 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Applications/util/dragon-nx32.link
Library/libs/crt0_6809.s

index 604f017..088d676 100644 (file)
@@ -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
index 11e3ccf..1f332c1 100644 (file)
@@ -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