Subversion Repositories HelenOS

Rev

Rev 1952 | Rev 2014 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

/** ia32xen linker script
 */

#define __ASM__
#include <arch/boot/boot.h>
#include <arch/mm/page.h>

ENTRY(kernel_image_start)

SECTIONS {
    __xen_guest : {
        *(__xen_guest);
    }
    
    .image PA2KA(BOOT_OFFSET): { 
        ktext_start = .;
        *(K_TEXT_START);
        *(.text);
        ktext_end = .;
        
        kdata_start = .;
        *(.data);           /* initialized data */
        *(.rodata*);            /* string literals */
        *(COMMON);          /* global variables */
        hardcoded_load_address = .;
        LONG(PA2KA(0));
        hardcoded_ktext_size = .;
        LONG(ktext_end - ktext_start);
        hardcoded_kdata_size = .;
        LONG(kdata_end - kdata_start);
        symbol_table = .;
        *(symtab.*);                /* Symbol table, must be LAST symbol! */
        *(.bss);            /* uninitialized static variables */
        kdata_end = .;
    }

    /DISCARD/ : {
        *(.note.GNU-stack);     
        *(.comment);
    }
}