2 * ld script to make compressed SuperH/shmedia Linux kernel+decompression
4 * Modified by Stuart Menefy from arch/sh/vmlinux.lds.S written by Niibe Yutaka
8 #ifdef CONFIG_LITTLE_ENDIAN
9 /* OUTPUT_FORMAT("elf32-sh64l-linux", "elf32-sh64l-linux", "elf32-sh64l-linux") */
10 #define NOP 0x6ff0fff0
12 /* OUTPUT_FORMAT("elf32-sh64", "elf32-sh64", "elf32-sh64") */
13 #define NOP 0xf0fff06f
16 OUTPUT_FORMAT("elf32-sh64-linux")
20 #define ALIGNED_GAP(section, align) (((ADDR(section)+SIZEOF(section)+(align)-1) & ~((align)-1))-ADDR(section))
21 #define FOLLOWING(section, align) AT (LOADADDR(section) + ALIGNED_GAP(section,align))
25 _text = .; /* Text and read-only data */
35 .rodata : { *(.rodata) }
37 /* There is no 'real' reason for eight byte alignment, four would work
38 * as well, but gdb downloads much (*4) faster with this.
41 .image : { *(.image) }
43 _etext = .; /* End of text section */
51 _data_image = LOADADDR(.data);/* Address of data section in ROM */
53 _edata = .; /* End of data section */
55 .stack : { stack = .; _stack = .; }
58 __bss_start = .; /* BSS */