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

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

add the possibility to compile abs32le with any cross-compiler which generates
32bit little endian code

  • Property mode set to 100644
File size: 864 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 */
5STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o)
6ENTRY(__entry)
7
8PHDRS {
9 interp PT_INTERP;
10 text PT_LOAD FILEHDR PHDRS FLAGS(5);
11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
15 .interp : {
16 *(.interp);
17 } :interp
18
19 . = 0x70001000;
20
21 .text : {
22 *(.text);
23 *(.rodata*);
24 } :text
25
26 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
27 *(.data);
28 *(.data.rel*);
29 } :data
30
31 .tdata : {
32 _tdata_start = .;
33 *(.tdata);
34 *(.gnu.linkonce.tb.*);
35 _tdata_end = .;
36 } :data
37
38 .tbss : {
39 _tbss_start = .;
40 *(.tbss);
41 _tbss_end = .;
42 } :data
43
44 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
45
46 .sbss : {
47 *(.scommon);
48 *(.sbss);
49 }
50
51 .bss : {
52 *(COMMON);
53 *(.bss);
54 } :data
55
56 . = ALIGN(0x1000);
57
58 _heap = .;
59
60 /DISCARD/ : {
61 *(*);
62 }
63}
Note: See TracBrowser for help on using the repository browser.