X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Flink.ld;h=a09b29af0169bc76ecab9dd28239faf12c13d040;hb=8fdfdc58b3a041f11592dd49c3a5726126b36859;hp=93066bce3d4d0d79163303bc598a59bb4d0aca57;hpb=8bc40333b1401d7616b225945fee53d972c2f418;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/link.ld b/Kernel/arch/x86/link.ld index 93066bce..a09b29af 100644 --- a/Kernel/arch/x86/link.ld +++ b/Kernel/arch/x86/link.ld @@ -9,6 +9,7 @@ OUTPUT_FORMAT(elf32-i386) SECTIONS { . = 0x100000; + __load_addr = .; .multiboot : AT(ADDR(.multiboot)) { *(.multiboot) } @@ -23,20 +24,33 @@ SECTIONS { _UsertextBase = .; *(.usertext) } + _UsertextEnd = .; .rodata ALIGN(0x1000): AT(ADDR(.rodata) - 0xC0000000) { *(.initpd) *(.rodata) *(.rdata) - _gKernelModules = .; + gKernelModules = .; *(KMODULES) - _gKernelModulesEnd = .; + gKernelModulesEnd = .; . = ALIGN(4); - _gKernelSymbols = .; + gKernelSymbols = .; *(KEXPORT) - _gKernelSymbolsEnd = .; + 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,11 +60,12 @@ SECTIONS { *(.data) } + __bss_start = .; .bss : AT(ADDR(.bss) - 0xC0000000) { _sbss = .; *(COMMON) *(.bss) _ebss = .; } - _gKernelEnd = (. + 0xFFF)&0xFFFFF000; + gKernelEnd = (. + 0xFFF)&0xFFFFF000; }