source: mainline/uspace/lib/c/arch/arm32/_link.ld.in@ 2f72560a

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2f72560a 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: 775 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 .init : {
20 *(.init);
21 } :text
22
23 .text : {
24 *(.text .text.*);
25 *(.rodata .rodata.*);
26 } :text
27
28 . = . + 0x1000;
29
30 .data : {
31 *(.opd);
32 *(.data .data.*);
33 *(.sdata);
34 } :data
35
36 .tdata : {
37 *(.tdata);
38 *(.tdata.*);
39 *(.gnu.linkonce.td.*);
40 } :data :tls
41
42 .tbss : {
43 *(.tbss);
44 *(.tbss.*);
45 *(.gnu.linkonce.tb.*);
46 } :data :tls
47
48 .bss : {
49 *(.sbss);
50 *(.scommon);
51 *(COMMON);
52 *(.bss);
53 } :data
54
55 _end = .;
56
57 /DISCARD/ : {
58 *(*);
59 }
60}
Note: See TracBrowser for help on using the repository browser.