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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 7473807 was f3fdecc, checked in by Jakub Jermar <jakub@…>, 7 years ago

Revert "Don't use custom ldscripts in uspace."

This reverts commit 66262a1bc2d53e61780c5f98a184a3b48b3de53f.

More work is needed on ia64.

  • Property mode set to 100644
File size: 781 bytes
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(_start)
3
4PHDRS {
5 text PT_LOAD FILEHDR PHDRS FLAGS(5);
6 data PT_LOAD FLAGS(6);
7 tls PT_TLS;
8}
9
10SECTIONS {
11#ifdef SHLIB
12 . = SEGMENT_START("text-segment", 0);
13#else
14 . = SEGMENT_START("text-segment", 0x400000);
15 PROVIDE (__executable_start = .);
16#endif
17 . = . + SIZEOF_HEADERS;
18
19 .text : {
20 *(.text .text.*);
21 *(.rodata .rodata.*);
22 } :text
23
24 . = . + 0x1000;
25
26 .data : {
27 *(.data);
28 *(.data.rel*);
29 } :data
30
31 .got.plt : {
32 *(.got.plt);
33 } :data
34
35 .tdata : {
36 *(.tdata);
37 *(.tdata.*);
38 *(.gnu.linkonce.td.*);
39 } :data :tls
40
41 .tbss : {
42 *(.tbss);
43 *(.tbss.*);
44 *(.gnu.linkonce.tb.*);
45 } :data :tls
46
47 .sbss : {
48 *(.scommon);
49 *(.sbss);
50 }
51
52 .bss : {
53 *(COMMON);
54 *(.bss);
55 } :data
56
57 _end = .;
58
59 /DISCARD/ : {
60 *(*);
61 }
62}
Note: See TracBrowser for help on using the repository browser.