source: mainline/uspace/srv/loader/arch/arm32/_link.ld.in@ fc8c2b6

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since fc8c2b6 was 21cb3ac, checked in by Martin Decky <martin@…>, 14 years ago

arm32: linker script improvements

  • Property mode set to 100644
File size: 845 bytes
Line 
1/*
2 * The only difference from _link.ld.in for regular statically-linked apps
3 * is the base address.
4 */
5
6STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
7ENTRY(__entry)
8
9PHDRS {
10 interp PT_INTERP;
11 text PT_LOAD FLAGS(5);
12 data PT_LOAD FLAGS(6);
13}
14
15SECTIONS {
16 .interp : {
17 *(.interp);
18 } : interp
19
20 . = 0x70001000;
21
22 .init ALIGN(0x1000): SUBALIGN(0x1000) {
23 *(.init);
24 } :text
25
26 .text : {
27 *(.text .text.*);
28 *(.rodata .rodata.*);
29 } :text
30
31 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
32 *(.opd);
33 *(.data .data.*);
34 *(.sdata);
35 } :data
36
37 .tdata : {
38 _tdata_start = .;
39 *(.tdata);
40 _tdata_end = .;
41 } :data
42
43 .tbss : {
44 _tbss_start = .;
45 *(.tbss);
46 _tbss_end = .;
47 } :data
48
49 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
50
51 .bss : {
52 *(.sbss);
53 *(.scommon);
54 *(COMMON);
55 *(.bss);
56 } :data
57
58 /DISCARD/ : {
59 *(*);
60 }
61}
Note: See TracBrowser for help on using the repository browser.