mirror of
https://github.com/nitraiolo/CfgUSBLoader.git
synced 2024-11-24 04:09:18 +01:00
61 lines
993 B
Plaintext
61 lines
993 B
Plaintext
OUTPUT_FORMAT("elf32-bigarm")
|
|
OUTPUT_ARCH(arm)
|
|
ENTRY(_start)
|
|
|
|
/* Sections area */
|
|
MEMORY {
|
|
table : ORIGIN = 0x0, LENGTH = 0x4000
|
|
exe(rwx) : ORIGIN = 0x137e0000, LENGTH = 0x8000
|
|
ram(rw) : ORIGIN = 0x137e8000, LENGTH = 0x10000
|
|
}
|
|
|
|
__exe_start_phys__ = 0x137e0000;
|
|
__ram_start_phys__ = 0x137e8000;
|
|
|
|
|
|
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
|
|
}
|