source: mainline/uspace/lib/c/arch/abs32le/_link.ld.in@ 74fec95

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 74fec95 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: 856 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 . = 0x70001000 + SIZEOF_HEADERS;
17
18 .interp : {
19 *(.interp);
20 } :interp :text
21#else
22 . = 0x1000 + SIZEOF_HEADERS;
23#endif
24
25 /* Make sure the code is aligned reasonably */
26 . = ALIGN(., 16);
27
28 .text : {
29 *(.text .text.*);
30 *(.rodata .rodata.*);
31 } :text
32
33 . = . + 0x1000;
34
35 .data : {
36 *(.data);
37 *(.data.rel*);
38 } :data
39
40 .tdata : {
41 _tdata_start = .;
42 *(.tdata);
43 *(.gnu.linkonce.tb.*);
44 _tdata_end = .;
45 _tbss_start = .;
46 *(.tbss);
47 _tbss_end = .;
48 } :data
49
50 _tls_alignment = ALIGNOF(.tdata);
51
52 .sbss : {
53 *(.scommon);
54 *(.sbss);
55 }
56
57 .bss : {
58 *(COMMON);
59 *(.bss);
60 } :data
61
62 /DISCARD/ : {
63 *(*);
64 }
65}
Note: See TracBrowser for help on using the repository browser.