source: mainline/arch/ppc32/_link.ld.in@ 778c1e1

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 778c1e1 was 3debedec, checked in by Ondrej Palkovsky <ondrap@…>, 20 years ago

Made powerpc to get on PearPC to the version print when compiled with -O1:

  • create proper memory zones
  • switch to real mode on boot

TODO

  • kernel relocation during boot
  • autodetection of framebuffer settings (PCI?) - now includes hardcoded settings for PearPc.
  • Property mode set to 100644
File size: 797 bytes
Line 
1/** PPC32 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#define __ASM__
10
11ENTRY(kernel_image_start)
12
13SECTIONS {
14 .image 0x800000: AT (0x800000) {
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(0x800000);
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}
Note: See TracBrowser for help on using the repository browser.