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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since b3b7e14a was 1ac3a52, checked in by Jakub Jermar <jakub@…>, 16 years ago

The kernel symbol table must be always 8-byte aligned.

  • Property mode set to 100644
File size: 915 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);
18 ktext_end = .;
19
20 kdata_start = .;
21 *(K_DATA_START)
22 *(.rodata);
23 *(.rodata.*);
24 *(.data); /* initialized data */
25 *(.sdata);
26 *(.sdata2);
27 *(.sbss);
28 . = ALIGN(8);
29 hardcoded_ktext_size = .;
30 QUAD(ktext_end - ktext_start);
31 hardcoded_kdata_size = .;
32 QUAD(kdata_end - kdata_start);
33 hardcoded_load_address = .;
34 QUAD(VMA);
35 *(.bss); /* uninitialized static variables */
36 *(COMMON); /* global variables */
37
38 . = ALIGN(8);
39 symbol_table = .;
40 *(symtab.*); /* Symbol table, must be LAST symbol!*/
41
42 kdata_end = .;
43 }
44
45 /DISCARD/ : {
46 *(*);
47 }
48
49}
Note: See TracBrowser for help on using the repository browser.