source: mainline/uspace/lib/c/arch/abs32le/_link.ld.in@ 03c971f

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 03c971f 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: 808 bytes
RevLine 
[1b1164e8]1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
[fb52db8]2ENTRY(__entry)
3
4PHDRS {
[c53d906]5#ifdef LOADER
6 interp PT_INTERP;
7 text PT_LOAD FILEHDR PHDRS FLAGS(5);
8#else
[fb52db8]9 text PT_LOAD FLAGS(5);
[c53d906]10#endif
[fb52db8]11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
[c53d906]15#ifdef LOADER
[e1c0260]16 . = 0x70001000 + SIZEOF_HEADERS;
[c53d906]17#else
18 . = 0x1000 + SIZEOF_HEADERS;
19#endif
[e1c0260]20
[fb52db8]21 .text : {
[9b3ce63]22 *(.text .text.*);
23 *(.rodata .rodata.*);
[fb52db8]24 } :text
25
[0783634]26#ifdef LOADER
27 .interp : {
28 *(.interp);
29 } :interp :text
30#endif
31
[fb52db8]32 . = . + 0x1000;
33
34 .data : {
35 *(.data);
[81983e3]36 *(.data.rel*);
[fb52db8]37 } :data
38
39 .tdata : {
40 _tdata_start = .;
41 *(.tdata);
42 *(.gnu.linkonce.tb.*);
43 _tdata_end = .;
44 _tbss_start = .;
45 *(.tbss);
46 _tbss_end = .;
47 } :data
48
49 _tls_alignment = ALIGNOF(.tdata);
50
[81983e3]51 .sbss : {
52 *(.scommon);
53 *(.sbss);
54 }
55
[fb52db8]56 .bss : {
57 *(COMMON);
58 *(.bss);
59 } :data
60
61 /DISCARD/ : {
62 *(*);
63 }
64}
Note: See TracBrowser for help on using the repository browser.