Last change
on this file since 477 was
444,
checked in by satin@…, 7 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
899 bytes
|
Line | |
---|
1 | OUTPUT_FORMAT("elf32-ft32") |
---|
2 | OUTPUT_ARCH(ft32) |
---|
3 | |
---|
4 | SEARCH_DIR(.) |
---|
5 | GROUP(-lsim -lc -lgcc -lsim) |
---|
6 | |
---|
7 | MEMORY |
---|
8 | { |
---|
9 | flash (rx) : ORIGIN = 0, LENGTH = 256K |
---|
10 | ram (rw!x) : ORIGIN = 0x800000, LENGTH = 64K |
---|
11 | } |
---|
12 | SECTIONS |
---|
13 | { |
---|
14 | .text : |
---|
15 | { |
---|
16 | *(.text*) |
---|
17 | *(.strings) |
---|
18 | *(._pm*) |
---|
19 | *(.init) |
---|
20 | *(.fini) |
---|
21 | _etext = . ; |
---|
22 | } > flash |
---|
23 | .tors : |
---|
24 | { |
---|
25 | ___ctors = . ; |
---|
26 | *(.ctors) |
---|
27 | ___ctors_end = . ; |
---|
28 | ___dtors = . ; |
---|
29 | *(.dtors) |
---|
30 | ___dtors_end = . ; |
---|
31 | } > ram |
---|
32 | .data : AT (ADDR (.text) + SIZEOF (.text)) |
---|
33 | { |
---|
34 | *(.data) |
---|
35 | *(.rodata) |
---|
36 | *(.rodata*) |
---|
37 | _edata = . ; |
---|
38 | } > ram |
---|
39 | .bss SIZEOF(.data) + ADDR(.data) : |
---|
40 | { |
---|
41 | _bss_start = . ; |
---|
42 | *(.bss) |
---|
43 | *(COMMON) |
---|
44 | _end = . ; |
---|
45 | } > ram |
---|
46 | __data_load_start = LOADADDR(.data); |
---|
47 | __data_load_end = __data_load_start + SIZEOF(.data); |
---|
48 | .stab 0 (NOLOAD) : |
---|
49 | { |
---|
50 | *(.stab) |
---|
51 | } |
---|
52 | .stabstr 0 (NOLOAD) : |
---|
53 | { |
---|
54 | *(.stabstr) |
---|
55 | } |
---|
56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.