Kernel/x86_64 - Cleaning up unused symbols in linker script
authorJohn Hodge <[email protected]>
Sat, 2 Jul 2011 04:38:19 +0000 (12:38 +0800)
committerJohn Hodge <[email protected]>
Sat, 2 Jul 2011 04:38:19 +0000 (12:38 +0800)
Kernel/arch/x86_64/link.ld

index b475f69..49fe7ae 100644 (file)
@@ -32,8 +32,8 @@ SECTIONS {
        .usertext ALIGN(0x1000): AT(ADDR(.usertext) - _kernel_base) {
                _UsertextBase = .;
                *(.usertext)
+               _UsertextEnd = .;
        }
-       _UsertextEnd = .;
        
        .rodata ALIGN(0x1000): AT(ADDR(.rodata) - _kernel_base) {
                *(.initpd)
@@ -57,10 +57,8 @@ SECTIONS {
 
        __bss_start = .;
        .bss : AT(ADDR(.bss) - _kernel_base) {
-               _sbss = .;
                *(COMMON)
                *(.bss)
-               _ebss = .;
        }
        gKernelEnd = (. + 0xFFF)&0xFFFFFFFFFFFFF000;
 }

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