]> begriffs open source - cmsis-freertos/blob - Demo/IA32_flat_GCC_Galileo_Gen_2/elf_ia32_efi.lds
Initial commit
[cmsis-freertos] / Demo / IA32_flat_GCC_Galileo_Gen_2 / elf_ia32_efi.lds
1 OUTPUT_FORMAT("elf32-i386")
2 OUTPUT_ARCH(i386)
3 ENTRY(_start)
4
5 physbase = 0x00100000;
6
7 SECTIONS
8 {       
9         . = physbase;
10         . = ALIGN(4096);
11         .text :
12         {
13             __text_start =  ABSOLUTE(.);
14             *(.text.entry)
15             *(.text)
16             *(.text.last)
17             *(.text.*)
18             . = ALIGN(4);
19                 *(.rodata)
20                 *( .rodata.*)
21             __text_end =  ABSOLUTE(.);
22                 . = ALIGN(4096);
23         }
24         
25         /* Read-write data (initialised) */
26         .data :
27         {
28                 __data_start = ABSOLUTE(.);
29                 __data_lma = LOADADDR(.data); 
30                 __data_vma =  ABSOLUTE(.);
31                 *(.data)
32                 *(.data.*)
33                 __data_end = ABSOLUTE(.);
34                 . = ALIGN(4096);
35         }
36
37         /* Read-write data (uninitialised) */
38         .bss :
39         {
40         __bss_start =  ABSOLUTE(.);
41         *(.bss)
42         *(COMMON)
43         __bss_end =  ABSOLUTE(.);
44                 . = ALIGN(1024);
45         }
46         
47         /* stack used before the scheduler starts */
48         .boot_stack :
49         {
50                 /* 2K for the boot stack.  This could be avoided by using the same RAM
51                 as used by the FreeRTOS system/interrupt stack. */
52                 . += 2048;
53         __stack_for_main = ABSOLUTE( . );
54                 . = ALIGN(1024);
55         }
56
57         /*exception unwinding and source language information */
58         .eh_frame : { KEEP (*(.eh_frame)) . = ALIGN(4); }
59
60         /* function exports */
61         .drectve : { KEEP (*(.drectve)) }
62         
63         .comment 0 : { *(.comment) }
64
65 }