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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 2c4e1cc was 2c4e1cc, checked in by Jiří Zárevúcky <jiri.zarevucky@…>, 8 years ago

Define TLS consistently in linker scripts, and remove nonstandard symbols.

Read the program header to find TLS instead.

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