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

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

ppc32: add line debugging support

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