source: mainline/uspace/srv/loader/arch/abs32le/_link.ld.in@ beb6b3d

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

abs32le: improve linker scripts

  • Property mode set to 100644
File size: 846 bytes
Line 
1/*
2 * The difference from _link.ld.in for regular statically-linked apps
3 * is the base address and the special interp section.
4 */
5
6STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
7ENTRY(__entry)
8
9PHDRS {
10 interp PT_INTERP;
11 text PT_LOAD FILEHDR PHDRS FLAGS(5);
12 data PT_LOAD FLAGS(6);
13}
14
15SECTIONS {
16 .interp : {
17 *(.interp);
18 } :interp
19
20 . = 0x70001000;
21
22 .text : {
23 *(.text .text.*);
24 *(.rodata .rodata.*);
25 } :text
26
27 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
28 *(.data);
29 *(.data.rel*);
30 } :data
31
32 .tdata : {
33 _tdata_start = .;
34 *(.tdata);
35 *(.gnu.linkonce.tb.*);
36 _tdata_end = .;
37 } :data
38
39 .tbss : {
40 _tbss_start = .;
41 *(.tbss);
42 _tbss_end = .;
43 } :data
44
45 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
46
47 .sbss : {
48 *(.scommon);
49 *(.sbss);
50 }
51
52 .bss : {
53 *(COMMON);
54 *(.bss);
55 } :data
56
57 /DISCARD/ : {
58 *(*);
59 }
60}
Note: See TracBrowser for help on using the repository browser.