2 * linux/arch/arm/boot/compressed/vmlinux.lds.in
4 * Copyright (C) 2000 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #ifdef CONFIG_CPU_ENDIAN_BE8
12 #define ZIMAGE_MAGIC(x) ( (((x) >> 24) & 0x000000ff) | \
13 (((x) >> 8) & 0x0000ff00) | \
14 (((x) << 8) & 0x00ff0000) | \
15 (((x) << 24) & 0xff000000) )
17 #define ZIMAGE_MAGIC(x) (x)
28 * Discard any r/w data - this produces a link error if we have any,
29 * which is required for PIC decompression. Local data generates
30 * GOTOFF relocations, which prevents it being relocated independently
31 * of the text/got segments.
60 .got.plt : { *(.got.plt) }
65 /* ensure the zImage file size is always a multiple of 64 bits */
66 /* (without a dummy byte, ld just ignores the empty section) */
67 .pad : { BYTE(0); . = ALIGN(8); }
70 _magic_sig = ZIMAGE_MAGIC(0x016f2818);
71 _magic_start = ZIMAGE_MAGIC(_start);
72 _magic_end = ZIMAGE_MAGIC(_edata);
79 . = ALIGN(8); /* the stack must be 64-bit aligned */
80 .stack : { *(.stack) }
82 .stab 0 : { *(.stab) }
83 .stabstr 0 : { *(.stabstr) }
84 .stab.excl 0 : { *(.stab.excl) }
85 .stab.exclstr 0 : { *(.stab.exclstr) }
86 .stab.index 0 : { *(.stab.index) }
87 .stab.indexstr 0 : { *(.stab.indexstr) }
88 .comment 0 : { *(.comment) }