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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since c1f68b0 was 584121d, checked in by jzr <zarevucky.jiri@…>, 8 years ago

Move reference to the startup object file (entry.o) out of the linker script.

The absolute path breaks reproducibility.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1ENTRY(__entry)
2
3PHDRS {
4#ifdef LOADER
5 interp PT_INTERP;
6 text PT_LOAD FILEHDR PHDRS FLAGS(5);
7#else
8 text PT_LOAD FLAGS(5);
9#endif
10 data PT_LOAD FLAGS(6);
11 debug PT_NOTE;
12}
13
14SECTIONS {
15#ifdef LOADER
16 . = 0x70001000 + SIZEOF_HEADERS;
17#else
18 . = 0x1000 + SIZEOF_HEADERS;
19#endif
20
21 .init : {
22 *(.init);
23 } :text
24
25 .text : {
26 *(.text .text.*);
27 *(.rodata .rodata.*);
28 } :text
29
30#ifdef LOADER
31 .interp : {
32 *(.interp);
33 } :interp :text
34#endif
35
36 . = . + 0x1000;
37
38 .data : {
39 *(.data);
40 *(.sdata);
41 } :data
42
43 .tdata : {
44 _tdata_start = .;
45 *(.tdata);
46 _tdata_end = .;
47 _tbss_start = .;
48 *(.tbss);
49 _tbss_end = .;
50 } :data
51
52 _tls_alignment = ALIGNOF(.tdata);
53
54 .bss : {
55 *(.sbss);
56 *(COMMON);
57 *(.bss);
58 } :data
59
60#ifdef CONFIG_LINE_DEBUG
61 .comment 0 : { *(.comment); } :debug
62 .debug_abbrev 0 : { *(.debug_abbrev); } :debug
63 .debug_aranges 0 : { *(.debug_aranges); } :debug
64 .debug_info 0 : { *(.debug_info); } :debug
65 .debug_line 0 : { *(.debug_line); } :debug
66 .debug_loc 0 : { *(.debug_loc); } :debug
67 .debug_pubnames 0 : { *(.debug_pubnames); } :debug
68 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
69 .debug_ranges 0 : { *(.debug_ranges); } :debug
70 .debug_str 0 : { *(.debug_str); } :debug
71#endif
72
73 /DISCARD/ : {
74 *(*);
75 }
76}
Note: See TracBrowser for help on using the repository browser.