source: mainline/boot/arch/ppc32/loader/_link.ld.in@ 177e4ea

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 177e4ea was e731b0d, checked in by Martin Decky <martin@…>, 16 years ago

make ppc32 OFW usage on par with sparc64, make appropriate modifications elsewhere

  • introduce ofw_tree_walk_by_device_type() to gather all OFW devices of a given type
  • ppc32 uses canonized OFW tree, mac-io and display devices are detected in kernel (not by the boot loader) by means of device type
  • various busses (PCI, EBUS, etc.) stay sparc64 specific for now
  • boot memcpy() is defined in a common way
  • BALLOC_MAX_SIZE is platform-dependent
  • ppc32 and sparc64 boot loaders cleanup (removal of obsolete stuff, data is not passed by global variables if not necessary, etc.)
  • balloc and OFW tree canonizer have now a provision to support different mapping of the data during boot time and kernel run-time
  • OFW tree canonizer uses balloc_rebase() to store pointers suitable for access during kernel run-time (with potentially different memory mapping than during boot time)
  • Property mode set to 100644
File size: 432 bytes
RevLine 
[fa024ce]1OUTPUT_FORMAT("elf32-powerpc")
2OUTPUT_ARCH(powerpc:common)
3ENTRY(start)
4
[960f8476]5SECTIONS {
[fa024ce]6 .boot 0x01000000: AT (0) {
[e19d667]7 *(BOOTSTRAP);
8 *(REALMODE);
9 *(.text);
10
11 *(.rodata);
12 *(.rodata.*);
[fa024ce]13 *(.data); /* initialized data */
[e19d667]14 *(.sdata);
15 *(.sdata2);
16 *(.sbss);
[fa024ce]17 *(.bss); /* uninitialized static variables */
18 *(COMMON); /* global variables */
[960f8476]19[[COMPONENTS]]
20 }
[e731b0d]21
22 /DISCARD/ : {
23 *(.comment);
24 *(.note*);
25 }
[960f8476]26}
Note: See TracBrowser for help on using the repository browser.