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

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

uspace linker scripts unification

  • Property mode set to 100644
File size: 794 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);
28 *(.rodata*);
29 } :text
30
31 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
32 *(.data);
33 *(.sdata);
34 } :data
35
36 .tdata : {
37 _tdata_start = .;
38 *(.tdata);
39 _tdata_end = .;
40 } :data
41
42 .tbss : {
43 _tbss_start = .;
44 *(.tbss);
45 _tbss_end = .;
46 } :data
47
48 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
49
50 .bss : {
51 *(.sbss);
52 *(COMMON);
53 *(.bss);
54 } :data
55
56 /DISCARD/ : {
57 *(*);
58 }
59}
Note: See TracBrowser for help on using the repository browser.