source: mainline/uspace/lib/c/arch/mips32/_link.ld.in@ d6cd626

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

make sure the code in .init is always aligned reasonably
(despite .interp section being also present in the text segment)

  • Property mode set to 100644
File size: 951 bytes
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}
13
14SECTIONS {
15#ifdef LOADER
16 . = 0x70004000 + SIZEOF_HEADERS;
17
18 .interp : {
19 *(.interp);
20 } :interp :text
21#else
22 . = 0x4000 + SIZEOF_HEADERS;
23#endif
24
25 /* Make sure the code is aligned reasonably */
26 . = ALIGN(., 16);
27
28 .init : {
29 *(.init);
30 } :text
31
32 .text : {
33 *(.text .text.*);
34 *(.rodata .rodata.*);
35 } :text
36
37 . = . + 0x4000;
38
39 .data : {
40 *(.data);
41 *(.data.rel*);
42 } :data
43
44 .got : {
45 _gp = .;
46 *(.got);
47 } :data
48
49 .tdata : {
50 _tdata_start = .;
51 *(.tdata);
52 _tdata_end = .;
53 } :data
54
55 .tbss : {
56 _tbss_start = .;
57 *(.tbss);
58 _tbss_end = .;
59 } :data
60
61 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
62
63 .sbss : {
64 *(.scommon);
65 *(.sbss);
66 }
67
68 .bss : {
69 *(.bss);
70 *(COMMON);
71 } :data
72
73 /DISCARD/ : {
74 *(*);
75 }
76}
Note: See TracBrowser for help on using the repository browser.