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