ppc64: Don't set Kp bit on SLB
[openbios.git] / arch / sparc64 / ldscript
blob11167c0e0aa2dd12b3a28b094740982476302fef
1 OUTPUT_FORMAT(elf64-sparc)
2 OUTPUT_ARCH(sparc:v9)
4 /* Qemu ELF loader can't handle very complex files, so we put ELFBoot
5 info to rodata and put initctx to data.*/
7 ENTRY(trap_table)
9 /* Initial load address
10  */
11 BASE_ADDR = 0x00000000ffd00000;
13 /* 16KB stack */
14 STACK_SIZE = 16384;
15 VMEM_SIZE = 128 * 1024;
16 IOMEM_SIZE = 256 * 1024 + 768 * 1024;
18 SECTIONS
20     . = BASE_ADDR;
22     /* Start of the program.
23      * Now the version string is in the note, we must include it
24      * in the program. Otherwise we lose the string after relocation. */
25     _start = .;
27     /* Normal sections */
28     .text ALIGN(524288): {
29         *(.text.vectors)
30         *(.text)
31         *(.text.*)
32     }
33     .rodata ALIGN(524288): {
34         _rodata = .;
35         sound_drivers_start = .;
36         *(.rodata.sound_drivers)
37         sound_drivers_end = .;
38         *(.rodata)
39         *(.rodata.*)
40         *(.note.ELFBoot)
41     }
42     .data ALIGN(524288): {
43         _data = .;
44         *(.data)
45         *(.data.*)
46     }
48     .bss ALIGN(4096): {
49         _bss = .;
50         *(.bss)
51         *(.bss.*)
52         *(COMMON)
54         . = ALIGN(4096);
55         _vmem = .;
56         . += VMEM_SIZE;
57         _evmem = .;
59         _stack = .;
60         . += STACK_SIZE;
61         . = ALIGN(16);
62         _estack = .;
63     }
65     . = ALIGN(4096);
66     _end = .;
67     _iomem = _end + IOMEM_SIZE;
69     /* We discard .note sections other than .note.ELFBoot,
70      * because some versions of GCC generates useless ones. */
72     /DISCARD/ : { *(.comment*) *(.note.*) }