source: mainline/uspace/lib/c/arch/ppc32/_link.ld.in@ 099c834

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 099c834 was fc0b2a8, checked in by Jiří Zárevúcky <jiri.zarevucky@…>, 8 years ago

Revert "Don't use custom ldscripts in uspace. (#38)"

This reverts commit a05ec6671002c451fceb01aa0ab3f71f004efb6d.

Needs more work.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(_start)
3
4PHDRS {
5 text PT_LOAD FILEHDR PHDRS FLAGS(5);
6 data PT_LOAD FLAGS(6);
7 tls PT_TLS;
8 debug PT_NOTE;
9}
10
11SECTIONS {
12#ifdef SHLIB
13 . = SEGMENT_START("text-segment", 0);
14#else
15 . = SEGMENT_START("text-segment", 0x400000);
16 PROVIDE (__executable_start = .);
17#endif
18 . = . + SIZEOF_HEADERS;
19
20 .init : {
21 *(.init);
22 } :text
23
24 .text : {
25 *(.text .text.*);
26 *(.rodata .rodata.*);
27 } :text
28
29 . = . + 0x1000;
30
31 .data : {
32 *(.data);
33 *(.sdata);
34 } :data
35
36 .tdata : {
37 *(.tdata);
38 *(.tdata.*);
39 *(.gnu.linkonce.td.*);
40 } :data :tls
41
42 .tbss : {
43 *(.tbss);
44 *(.tbss.*);
45 *(.gnu.linkonce.tb.*);
46 } :data :tls
47
48 .bss : {
49 *(.sbss);
50 *(COMMON);
51 *(.bss);
52 } :data
53
54 _end = .;
55
56#ifdef CONFIG_LINE_DEBUG
57 .comment 0 : { *(.comment); } :debug
58 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
59 .debug_aranges 0 : { *(.debug_aranges); } :debug
60 .debug_info 0 : { *(.debug_info); } :debug
61 .debug_line 0 : { *(.debug_line); } :debug
62 .debug_loc 0 : { *(.debug_loc); } :debug
63 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
64 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
65 .debug_ranges 0 : { *(.debug_ranges); } :debug
66 .debug_str 0 : { *(.debug_str); } :debug
67#endif
68
69 /DISCARD/ : {
70 *(*);
71 }
72}
Note: See TracBrowser for help on using the repository browser.