CfgUSBLoader/cios/dip_frag/link.ld
2015-01-17 10:11:08 +00:00

71 lines
1.1 KiB
Plaintext

OUTPUT_FORMAT("elf32-bigarm")
OUTPUT_ARCH(arm)
ENTRY(_start)
/* Sections area */
/*
MEMORY {
table : ORIGIN = 0x0, LENGTH = 0x4000
exe(rwx) : ORIGIN = 0x13800000, LENGTH = 0x1000
ram(rw) : ORIGIN = 0x13801000, LENGTH = 0x3000
}
__exe_start_phys__ = 0x13800000;
__ram_start_phys__ = 0x13801000;
*/
MEMORY {
table : ORIGIN = 0x0, LENGTH = 0x4000
exe(rwx) : ORIGIN = 0x13700000, LENGTH = 0x2000
ram(rw) : ORIGIN = 0x13702000, LENGTH = 0x40000
}
__exe_start_phys__ = 0x13700000;
__ram_start_phys__ = 0x13702000;
SECTIONS {
.ios_info_table : {
KEEP (*(.ios_info_table))
} > table
.init : AT (__exe_start_phys__) {
*(.init)
. = ALIGN(4);
} > exe
.text : {
*(.text*)
*(.gnu.warning)
*(.gnu.linkonce.t.*)
*(.init)
*(.glue_7)
*(.glue_7t)
. = ALIGN(4);
} > exe
.data : AT (__ram_start_phys__) {
*(.data*)
*(.data.*)
*(.gnu.linkonce.d.*)
. = ALIGN(4);
} > ram
.rodata : {
*(.rodata)
*all.rodata*(*)
*(.roda)
*(.rodata.*)
*(.gnu.linkonce.r.*)
. = ALIGN(4);
} > ram
.bss : {
*(.dynsbss)
*(.gnu.linkonce.sb.*)
*(.bss*)
*(COMMON)
KEEP(*(.ios_bss))
. = ALIGN(4);
} > ram
}