source: mainline/uspace/srv/loader/arch/ppc32/_link.ld.in@ c98e6ee

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c98e6ee was c98e6ee, checked in by Jiri Svoboda <jirik.svoboda@…>, 17 years ago

Merge program-loader related stuff from dynload branch to trunk. (huge)

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