Updated Usermode FInfo structure to match the kernel's copy
[tpg/acess2.git] / Kernel / arch / arm7 / link.ld
index 53e1a60..b17677b 100644 (file)
@@ -1,9 +1,33 @@
 ENTRY (_start)
 
+_kernel_base = 0x80000000;
+
 SECTIONS
 {
-       . = 0x80000000;
-       .text : { *(.text*) *(.rodata*) }
-       .data : { *(.data*) }
-       .bss : { *(.bss*) *(COMMON*) }
+       . = 0;
+       . += _kernel_base;
+       .text : AT( ADDR(.text) - _kernel_base )
+       {
+               *(.text*)
+               *(.rodata*)
+       }
+       .data ALIGN(0x1000) : AT( ADDR(.data) - _kernel_base )
+       {
+               *(.padata)
+               *(.data*)
+               
+               gKernelSymbols = .;
+               *(KEXPORT)
+               gKernelSymbolsEnd = .;
+               
+               gKernelModules = .;
+               *(KMODULES)
+               gKernelModulesEnd = .;
+       }
+       .bss : AT( ADDR(.bss) - _kernel_base )
+       {
+               *(.bss*)
+               *(COMMON*)
+       }
+       gKernelEnd = .;
 }

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