1 const static char LDSCRIPT_PART1
[] =
3 " Script for final linking of AROS executables.\n"
5 " NOTE: This file is the result of a rearrangement of the built-in ld script.\n"
6 " It's AROS-specific, in that it does constructors/destructors collecting\n"
7 " and doesn't care about some sections that are not used by AROS at the moment\n"
10 " It *should* be general enough to be used on many architectures.\n"
13 "FORCE_COMMON_ALLOCATION\n" \
23 " /* .gnu.warning sections are handled specially by elf32.em. */\n"
25 " *(.gnu.linkonce.t.*)\n"
32 " *(.gnu.linkonce.r.*)\n"
34 " .rodata1 0 : { *(.rodata1) }\n"
37 " Used only on PPC.\n"
39 " NOTE: these should go one after the other one, so some tricks\n"
40 " must be used in the ELF loader to satisfy that requirement\n"
42 " .sdata2 0 : { *(.sdata2) *(.sdata2.*) *(.gnu.linkonce.s2.*) }\n"
43 " .sbss2 0 : { *(.sbss2) *(.sbss2.*) *(.gnu.linkonce.sb2.*) }\n"
49 " *(.gnu.linkonce.d.*)\n"
50 " . = ALIGN(0x10);\n";
53 static const char LDSCRIPT_PART2
[] =
55 " .data1 0 : { *(.data1) }\n"
56 " .eh_frame 0 : { KEEP (*(.eh_frame)) }\n"
57 " .gcc_except_table 0 : { *(.gcc_except_table) }\n"
59 " /* We want the small data sections together, so single-instruction offsets\n"
60 " can access them all, and initialized data all before uninitialized, so\n"
61 " we can shorten the on-disk segment size. */\n"
66 " *(.gnu.linkonce.s.*)\n"
73 " *(.gnu.linkonce.sb.*)\n"
81 " *(.gnu.linkonce.b.*)\n"
84 " /DISCARD/ : { *(.note.GNU-stack) }\n";
86 static const char LDSCRIPT_PART3
[] =