source: mainline/kernel/arch/sparc32/_link.ld.in@ f988a13

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since f988a13 was b6b02c0, checked in by Jakub Klama <jakub.klama@…>, 12 years ago

Initial work on sparc32 architecture support.

  • /boot/arch/sparc32 loosely based on arm32 port
  • /kernel/arch/sparc32 based on abs32le template
  • /uspace/lib/c/arch/sparc32 based on sparc64 implementation with incompatible parts temporarily commented out.

Work currently done:

  • AMBA plug and play support in loader
  • initial MMU setup
  • kernel booting
  • register window traps
  • context_save_arch/context_restore_arch

Completed milestones: M1, M2

  • Property mode set to 100644
File size: 812 bytes
Line 
1#define KERNEL_LOAD_ADDRESS 0x80a00000
2
3ENTRY(kernel_image_start)
4
5SECTIONS {
6 . = KERNEL_LOAD_ADDRESS;
7 .text : {
8 ktext_start = .;
9 *(.text);
10 ktext_end = .;
11 }
12 .data : {
13 kdata_start = .;
14 *(.data); /* initialized data */
15 . = ALIGN(8);
16 hardcoded_ktext_size = .;
17 LONG(ktext_end - ktext_start);
18 hardcoded_kdata_size = .;
19 LONG(kdata_end - kdata_start);
20 hardcoded_load_address = .;
21 LONG(KERNEL_LOAD_ADDRESS);
22 *(.bss); /* uninitialized static variables */
23 *(COMMON); /* global variables */
24
25 *(.rodata*);
26 *(.sdata);
27 *(.reginfo);
28 . = ALIGN(8);
29 symbol_table = .;
30 *(symtab.*);
31 }
32 .sbss : {
33 *(.sbss);
34 *(.scommon);
35 }
36
37 kdata_end = .;
38
39 /DISCARD/ : {
40 *(.mdebug*);
41 *(.pdr);
42 *(.comment);
43 *(.note);
44 }
45}
Note: See TracBrowser for help on using the repository browser.