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

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

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

  • Property mode set to 100644
File size: 855 bytes
RevLine 
[6bc4dbd]1/** SPARC64 linker script
[2a99fa8]2 *
3 * It is ELF format, but its only section looks like this:
4 * kernel text
5 * kernel data
6 *
7 */
8
[0e4dd7b]9#include <arch/boot/boot.h>
[6bc4dbd]10
[2a99fa8]11ENTRY(kernel_image_start)
12
13SECTIONS {
[0e4dd7b]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.*);
24 *(.data); /* initialized data */
25 *(.sdata);
26 *(.sdata2);
27 *(.sbss);
[a7961271]28 . = ALIGN(8);
[2a99fa8]29 hardcoded_ktext_size = .;
[42744880]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);
[2a99fa8]35 *(.bss); /* uninitialized static variables */
36 *(COMMON); /* global variables */
37
38 symbol_table = .;
39 *(symtab.*); /* Symbol table, must be LAST symbol!*/
40
41 kdata_end = .;
42 }
[81e1396]43
44 /DISCARD/ : {
[7bb6b06]45 *(*);
[81e1396]46 }
47
[2a99fa8]48}
Note: See TracBrowser for help on using the repository browser.