source: mainline/uspace/lib/c/arch/sparc32/_link.ld.in@ 270bf4f

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 270bf4f 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: 828 bytes
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(__entry)
3
4PHDRS {
5#ifdef LOADER
6 interp PT_INTERP;
7 text PT_LOAD FILEHDR PHDRS FLAGS(5);
8#else
9 text PT_LOAD FLAGS(5);
10#endif
11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
15#ifdef LOADER
16 . = 0x70004000 + SIZEOF_HEADERS;
17#else
18 . = 0x4000 + SIZEOF_HEADERS;
19#endif
20
21 .init : {
22 *(.init);
23 } :text
24
25 .text : {
26 *(.text .text.*);
27 *(.rodata .rodata.*);
28 } :text
29
30#ifdef LOADER
31 .interp : {
32 *(.interp);
33 } :interp :text
34#endif
35
36 . = . + 0x4000;
37
38 .got : {
39 _gp = .;
40 *(.got*);
41 } :data
42
43 .data : {
44 *(.data);
45 *(.sdata);
46 } :data
47
48 .tdata : {
49 _tdata_start = .;
50 *(.tdata);
51 _tdata_end = .;
52 _tbss_start = .;
53 *(.tbss);
54 _tbss_end = .;
55 } :data
56
57 _tls_alignment = ALIGNOF(.tdata);
58
59 .bss : {
60 *(.sbss);
61 *(COMMON);
62 *(.bss);
63 } :data
64
65 /DISCARD/ : {
66 *(*);
67 }
68}
Note: See TracBrowser for help on using the repository browser.