source: mainline/uspace/srv/loader/arch/arm32/_link.ld.in@ 3a3d4ca

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

uspace linker scripts unification

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