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
RevLine 
[1b1164e8]1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
[d630139]2ENTRY(__entry)
3
4PHDRS {
[c53d906]5#ifdef LOADER
6 interp PT_INTERP;
7 text PT_LOAD FILEHDR PHDRS FLAGS(5);
8#else
[d630139]9 text PT_LOAD FLAGS(5);
[c53d906]10#endif
[d630139]11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
[c53d906]15#ifdef LOADER
[e1c0260]16 . = 0x70001000 + SIZEOF_HEADERS;
17
[c53d906]18 .interp : {
19 *(.interp);
[e1c0260]20 } :interp :text
[c53d906]21#else
22 . = 0x1000 + SIZEOF_HEADERS;
23#endif
[e1c0260]24
[9bcdbc5]25 /* Make sure the code is aligned reasonably */
26 . = ALIGN(., 8);
27
[1cc2974]28 .init : {
[d630139]29 *(.init);
[5e8b881]30 } :text
31
[d630139]32 .text : {
[21cb3ac]33 *(.text .text.*);
34 *(.rodata .rodata.*);
[d630139]35 } :text
[5e8b881]36
[1cc2974]37 . = . + 0x1000;
[5e8b881]38
[1cc2974]39 .data : {
[d630139]40 *(.opd);
41 *(.data .data.*);
42 *(.sdata);
43 } :data
[5e8b881]44
[d630139]45 .tdata : {
46 _tdata_start = .;
47 *(.tdata);
48 _tdata_end = .;
49 _tbss_start = .;
50 *(.tbss);
51 _tbss_end = .;
52 } :data
[5e8b881]53
[e622f0a8]54 _tls_alignment = ALIGNOF(.tdata);
[5e8b881]55
[d630139]56 .bss : {
57 *(.sbss);
58 *(.scommon);
[5e8b881]59 *(COMMON);
60 *(.bss);
[d630139]61 } :data
[6b781c0]62
[d630139]63 /DISCARD/ : {
64 *(*);
[6b781c0]65 }
[d630139]66}
Note: See TracBrowser for help on using the repository browser.