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

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

place the .interp section behind the other sections in the text segment
the explicit alignment directive (which causes issues such as #491) is no longer needed

  • Property mode set to 100644
File size: 903 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;
[c53d906]17#else
18 . = 0x4000 + SIZEOF_HEADERS;
19#endif
[e1c0260]20
[1cc2974]21 .init : {
[8f9239e]22 *(.init);
[a3aa1e1]23 } :text
[5e8b881]24
[8f9239e]25 .text : {
[e392ebd]26 *(.text .text.*);
27 *(.rodata .rodata.*);
[a3aa1e1]28 } :text
[5e8b881]29
[0783634]30#ifdef LOADER
31 .interp : {
32 *(.interp);
33 } :interp :text
34#endif
35
[1cc2974]36 . = . + 0x4000;
[5e8b881]37
[a71d9af9]38 .data : {
[8f9239e]39 *(.data);
[a71d9af9]40 *(.data.rel*);
[a3aa1e1]41 } :data
[5e8b881]42
[e708063]43 .got : {
44 _gp = .;
[a71d9af9]45 *(.got);
[e708063]46 } :data
[5e8b881]47
[c4c5de5]48 .tdata : {
49 _tdata_start = .;
50 *(.tdata);
51 _tdata_end = .;
[5e8b881]52 } :data
53
54 .tbss : {
[c4c5de5]55 _tbss_start = .;
56 *(.tbss);
57 _tbss_end = .;
58 } :data
[5e8b881]59
60 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
61
[6122db1]62 .sbss : {
63 *(.scommon);
64 *(.sbss);
[5e8b881]65 }
66
[8f9239e]67 .bss : {
68 *(.bss);
69 *(COMMON);
[a3aa1e1]70 } :data
[5e8b881]71
[8f9239e]72 /DISCARD/ : {
[d03e156]73 *(*);
74 }
[3eddaff]75}
Note: See TracBrowser for help on using the repository browser.