comparison lwlink/script.c @ 151:3b58d76ea032

Fix up some minor thinkos in handling the module layout and header
author lost@l-w.ca
date Fri, 26 Aug 2011 23:44:44 -0600
parents 08fb11004df9
children c6a38fd8bd33
comparison
equal deleted inserted replaced
150:244f1227f2b5 151:3b58d76ea032
31 #include <lw_string.h> 31 #include <lw_string.h>
32 32
33 #include "lwlink.h" 33 #include "lwlink.h"
34 34
35 // the built-in OS9 script 35 // the built-in OS9 script
36 // the 000D bit is to handle the module header!
36 static char *os9_script = 37 static char *os9_script =
37 "section code load 0000\n" 38 "section code load 000D\n"
38 "section .text\n" 39 "section .text\n"
39 "section data\n" 40 "section data\n"
40 "section .data\n" 41 "section .data\n"
41 "section bss,bss load 0000\n" 42 "section bss,bss load 0000\n"
42 "section .bss,bss\n" 43 "section .bss,bss\n"
44 "entry __start\n"
43 ; 45 ;
44 46
45 // the built-in DECB target linker script 47 // the built-in DECB target linker script
46 static char *decb_script = 48 static char *decb_script =
47 "section init load 2000\n" 49 "section init load 2000\n"