source: mainline/kernel/arch/sparc64/_link.ld.in@ 2277e03

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

sparc64: improve linker scripts

  • Property mode set to 100644
File size: 917 bytes
Line 
1/** SPARC64 linker script
2 *
3 * It is ELF format, but its only section looks like this:
4 * kernel text
5 * kernel data
6 *
7 */
8
9#include <arch/boot/boot.h>
10
11ENTRY(kernel_image_start)
12
13SECTIONS {
14 .image VMA: AT (LMA) {
15 ktext_start = .;
16 *(K_TEXT_START)
17 *(.text .text.*);
18 ktext_end = .;
19
20 kdata_start = .;
21 *(K_DATA_START)
22 *(.rodata .rodata.*);
23 *(.data); /* initialized data */
24 *(.sdata);
25 *(.sdata2);
26 *(.sbss);
27 . = ALIGN(8);
28 hardcoded_ktext_size = .;
29 QUAD(ktext_end - ktext_start);
30 hardcoded_kdata_size = .;
31 QUAD(kdata_end - kdata_start);
32 hardcoded_load_address = .;
33 QUAD(VMA);
34 *(.bss); /* uninitialized static variables */
35 *(COMMON); /* global variables */
36
37 . = ALIGN(8);
38 symbol_table = .;
39 *(symtab.*); /* Symbol table, must be LAST symbol!*/
40
41 kdata_end = .;
42 }
43
44 /DISCARD/ : {
45 *(*);
46 }
47
48}
Note: See TracBrowser for help on using the repository browser.