source: mainline/kernel/arch/sparc64/_link.ld.in@ 5646813

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

simplify configuration
introduce arch_construct_function and inb/outb (sometimes empty) on all platforms
various code cleanup

  • Property mode set to 100644
File size: 899 bytes
RevLine 
[6bc4dbd]1/** SPARC64 linker script
[2a99fa8]2 *
3 * It is ELF format, but its only section looks like this:
[6da1013f]4 * kernel text
5 * kernel data
[2a99fa8]6 *
7 */
8
[0e4dd7b]9#include <arch/boot/boot.h>
[6bc4dbd]10
[2a99fa8]11ENTRY(kernel_image_start)
12
13SECTIONS {
[6da1013f]14 .image VMA: AT (LMA) {
[2a99fa8]15 ktext_start = .;
16 *(K_TEXT_START)
17 *(.text);
18 ktext_end = .;
19
20 kdata_start = .;
21 *(K_DATA_START)
22 *(.rodata);
23 *(.rodata.*);
[6da1013f]24 *(.data); /* initialized data */
[2a99fa8]25 *(.sdata);
26 *(.sdata2);
27 *(.sbss);
[a7961271]28 . = ALIGN(8);
[2a99fa8]29 hardcoded_ktext_size = .;
[6da1013f]30 QUAD(ktext_end - ktext_start);
[2a99fa8]31 hardcoded_kdata_size = .;
[42744880]32 QUAD(kdata_end - kdata_start);
[2a99fa8]33 hardcoded_load_address = .;
[0e4dd7b]34 QUAD(VMA);
[6da1013f]35 *(.bss); /* uninitialized static variables */
36 *(COMMON); /* global variables */
37
[2a99fa8]38 symbol_table = .;
[6da1013f]39 *(symtab.*); /* Symbol table, must be LAST symbol!*/
40
[2a99fa8]41 kdata_end = .;
42 }
[81e1396]43
44 /DISCARD/ : {
[7bb6b06]45 *(*);
[81e1396]46 }
[6da1013f]47
[2a99fa8]48}
Note: See TracBrowser for help on using the repository browser.