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

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 7bb6b06 was 7bb6b06, checked in by Jakub Jermar <jakub@…>, 19 years ago

Small improvements here and there.

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