moving to 2MB, need to modify ldscript for vma/lma
[com32] / com32.ld
index 04c9f88..4771389 100644 (file)
--- a/com32.ld
+++ b/com32.ld
@@ -4,10 +4,10 @@ ENTRY(_start)
 SECTIONS {
        /* loader starts at <seg>:100h */
        . = 0x100;
-       .loader : {
-               * (.loader);
-               * (.ldrtext);
-       }
+       .loader : { * (.loader); }
+
+       . = ALIGN(4);
+       _ldr_main_start = .;
 
        /* main program will be moved to 2MB by the loader */
        . = 2M;