lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 2cd0485d was 39cb79a, checked in by Jakub Jermar <jakub@…>, 20 years ago |
sparc64 work.
Link kernel with load address 0x4000.
Add fragment of Linux image header to force SILO to always load the kernel at 0x4000.
Adjust ofw.h and ofw.c to work also on sparc64.
|
-
Property mode
set to
100644
|
File size:
869 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * SPARC64 linker script
|
---|
3 | *
|
---|
4 | * It is ELF format, but its only section looks like this:
|
---|
5 | * kernel text
|
---|
6 | * kernel data
|
---|
7 | *
|
---|
8 | */
|
---|
9 |
|
---|
10 | OUTPUT_FORMAT(elf64-sparc)
|
---|
11 | ENTRY(kernel_image_start)
|
---|
12 |
|
---|
13 | SECTIONS {
|
---|
14 | .image 0x4000: AT (0x4000) {
|
---|
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 | hardcoded_ktext_size = .;
|
---|
29 | LONG(ktext_end - ktext_start);
|
---|
30 | hardcoded_kdata_size = .;
|
---|
31 | LONG(kdata_end - kdata_start);
|
---|
32 | hardcoded_load_address = .;
|
---|
33 | LONG(0x4000);
|
---|
34 | *(.bss); /* uninitialized static variables */
|
---|
35 | *(COMMON); /* global variables */
|
---|
36 |
|
---|
37 | symbol_table = .;
|
---|
38 | *(symtab.*); /* Symbol table, must be LAST symbol!*/
|
---|
39 |
|
---|
40 | kdata_end = .;
|
---|
41 | }
|
---|
42 |
|
---|
43 | /DISCARD/ : {
|
---|
44 | *(.comment);
|
---|
45 | *(.note*);
|
---|
46 | }
|
---|
47 |
|
---|
48 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.