X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Flink.ld;h=75b712fb61e93be176f9a915dfe71094e8867999;hb=717454930aa0e255517c68c837927deac49bd78e;hp=7bce7196d9a18a11e7b75276d26903fd0a01164c;hpb=6749674b892a0865abc22f9a6ec9a624ff40a283;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/link.ld b/Kernel/arch/x86/link.ld index 7bce7196..75b712fb 100644 --- a/Kernel/arch/x86/link.ld +++ b/Kernel/arch/x86/link.ld @@ -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)