AcessNative - Fixing Fixing Fixing
[tpg/acess2.git] / Kernel / arch / x86 / link.ld
index 7bce719..75b712f 100644 (file)
@@ -3,12 +3,13 @@
  * Linker Script
  */
 
-lowStart = start - 0xC0000000;
-ENTRY(lowStart)
+//lowStart = start - 0xC0000000;
+ENTRY(start)
 OUTPUT_FORMAT(elf32-i386)
 
 SECTIONS {
        . = 0x100000;
+       __load_addr = .;
        .multiboot : AT(ADDR(.multiboot)) {
                *(.multiboot)
        }
@@ -23,6 +24,7 @@ SECTIONS {
                _UsertextBase = .;
                *(.usertext)
        }
+       _UsertextEnd = .;
        
        .rodata ALIGN(0x1000): AT(ADDR(.rodata) - 0xC0000000) {
                *(.initpd)
@@ -36,7 +38,19 @@ SECTIONS {
                *(KEXPORT)
                gKernelSymbolsEnd = .;
 
+
        }
+       /*
+       .debug_abbrev : { *(.debug_abbrev) }
+       .debug_info : { *(.debug_info) }
+       .debug_line : { *(.debug_line) }
+       .debug_loc : { *(.debug_loc) }
+       .debug_pubnames : { *(.debug_pubnames) }
+       .debug_aranges : { *(.debug_aranges) }
+       .debug_ranges : { *(.debug_ranges) }
+       .debug_str : { *(.debug_str) }
+       .debug_frame : { *(.debug_frame) }
+       */
        
        .padata ALIGN (0x1000) : AT(ADDR(.padata) - 0xC0000000) {
                *(.padata)
@@ -46,6 +60,7 @@ SECTIONS {
                *(.data)
        }
 
+       __bss_start = .;
        .bss : AT(ADDR(.bss) - 0xC0000000) {
                _sbss = .;
                *(COMMON)

UCC git Repository :: git.ucc.asn.au