2012-10-08 03:38:03 +02:00
|
|
|
OUTPUT_ARCH("arm")
|
|
|
|
ENTRY(__k_unpaged_MINIX)
|
|
|
|
|
|
|
|
_kern_phys_base = 0x80200000; /* phys 4MB aligned for convenient remapping */
|
|
|
|
_kern_vir_base = 0xF0400000; /* map kernel high for max. user vir space */
|
|
|
|
_kern_offset = (_kern_vir_base - _kern_phys_base);
|
|
|
|
|
|
|
|
__k_unpaged__kern_offset = _kern_offset;
|
|
|
|
__k_unpaged__kern_vir_base = _kern_vir_base;
|
|
|
|
__k_unpaged__kern_phys_base = _kern_phys_base;
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = _kern_phys_base;
|
|
|
|
__k_unpaged__kern_unpaged_start = .;
|
|
|
|
|
|
|
|
.unpaged_text ALIGN(4096) : { unpaged_*.o(.text) }
|
|
|
|
.unpaged_data ALIGN(4096) : { unpaged_*.o(.data .rodata*) }
|
2014-06-03 15:51:55 +02:00
|
|
|
__k_unpaged__kern_unpaged_edata = .;
|
|
|
|
|
2012-10-08 03:38:03 +02:00
|
|
|
.unpaged_bss ALIGN(4096) : { unpaged_*.o(.bss COMMON) }
|
|
|
|
__k_unpaged__kern_unpaged_end = .;
|
|
|
|
|
|
|
|
. += _kern_offset;
|
|
|
|
|
|
|
|
. = ALIGN(4096); usermapped_start = .;
|
2013-06-11 21:08:05 +02:00
|
|
|
.usermapped_glo : AT(ADDR(.usermapped_glo) - _kern_offset) { usermapped_glo*.o(*) }
|
2012-10-08 03:38:03 +02:00
|
|
|
. = ALIGN(4096); usermapped_nonglo_start = .;
|
2013-06-11 21:08:05 +02:00
|
|
|
.usermapped : AT(ADDR(.usermapped) - _kern_offset) { usermapped_*.o(*) }
|
2012-10-08 03:38:03 +02:00
|
|
|
. = ALIGN(4096); usermapped_end = .;
|
|
|
|
.text : AT(ADDR(.text) - _kern_offset) { *(.text*) }
|
|
|
|
_etext = .;
|
|
|
|
.data ALIGN(4096) : AT(ADDR(.data) - _kern_offset) { *(.data .rodata* ) }
|
|
|
|
. = ALIGN(4096);
|
|
|
|
_edata = .;
|
2014-06-03 15:51:55 +02:00
|
|
|
__k_unpaged__edata = . - _kern_offset;
|
2012-10-08 03:38:03 +02:00
|
|
|
.bss ALIGN(4096) : AT(ADDR(.bss) - _kern_offset) { *(.bss* COMMON)
|
|
|
|
__k_unpaged__kern_size = . - _kern_vir_base;
|
|
|
|
_kern_size = __k_unpaged__kern_size;
|
2014-06-03 15:51:55 +02:00
|
|
|
|
2012-10-08 03:38:03 +02:00
|
|
|
. += 4096;
|
|
|
|
}
|
|
|
|
_end = .;
|
2014-06-03 15:51:55 +02:00
|
|
|
__k_unpaged__end = . - _kern_offset;
|
2012-10-08 03:38:03 +02:00
|
|
|
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.ARM.exidx*)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|