source: mainline/uspace/lib/c/arch/arm32/_link.ld.in@ 15c9b26

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 15c9b26 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: 863 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(., 8);
27
28 .init : {
29 *(.init);
30 } :text
31
32 .text : {
33 *(.text .text.*);
34 *(.rodata .rodata.*);
35 } :text
36
37 . = . + 0x1000;
38
39 .data : {
40 *(.opd);
41 *(.data .data.*);
42 *(.sdata);
43 } :data
44
45 .tdata : {
46 _tdata_start = .;
47 *(.tdata);
48 _tdata_end = .;
49 _tbss_start = .;
50 *(.tbss);
51 _tbss_end = .;
52 } :data
53
54 _tls_alignment = ALIGNOF(.tdata);
55
56 .bss : {
57 *(.sbss);
58 *(.scommon);
59 *(COMMON);
60 *(.bss);
61 } :data
62
63 /DISCARD/ : {
64 *(*);
65 }
66}
Note: See TracBrowser for help on using the repository browser.