blob: 4e728834a1b9dea2d0d6a41076d9a3d572424321 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/arm/boot/compressed/vmlinux.lds.in
3 *
4 * Copyright (C) 2000 Russell King
5 *
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.
9 */
10OUTPUT_ARCH(arm)
11ENTRY(_start)
12SECTIONS
13{
Catalin Marinasbff595c2009-02-16 11:41:36 +010014 /DISCARD/ : {
15 *(.ARM.exidx*)
16 *(.ARM.extab*)
Russell King5de813b2010-02-25 12:14:40 +000017 /*
18 * Discard any r/w data - this produces a link error if we have any,
19 * which is required for PIC decompression. Local data generates
20 * GOTOFF relocations, which prevents it being relocated independently
21 * of the text/got segments.
22 */
23 *(.data)
Catalin Marinasbff595c2009-02-16 11:41:36 +010024 }
25
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 . = TEXT_START;
27 _text = .;
28
29 .text : {
30 _start = .;
31 *(.start)
32 *(.text)
Russell Kingc5b8ef62006-04-09 19:08:42 +010033 *(.text.*)
Linus Torvalds1da177e2005-04-16 15:20:36 -070034 *(.fixup)
35 *(.gnu.warning)
Russell King3002b412011-05-26 11:40:54 +010036 *(.glue_7t)
37 *(.glue_7)
38 }
39 .rodata : {
Linus Torvalds1da177e2005-04-16 15:20:36 -070040 *(.rodata)
41 *(.rodata.*)
Russell King3002b412011-05-26 11:40:54 +010042 }
43 .piggydata : {
Linus Torvalds1da177e2005-04-16 15:20:36 -070044 *(.piggydata)
Linus Torvalds1da177e2005-04-16 15:20:36 -070045 }
46
Russell King3002b412011-05-26 11:40:54 +010047 . = ALIGN(4);
Linus Torvalds1da177e2005-04-16 15:20:36 -070048 _etext = .;
49
Russell King3002b412011-05-26 11:40:54 +010050 .got.plt : { *(.got.plt) }
Linus Torvalds1da177e2005-04-16 15:20:36 -070051 _got_start = .;
52 .got : { *(.got) }
53 _got_end = .;
Linus Torvalds1da177e2005-04-16 15:20:36 -070054 _edata = .;
55
56 . = BSS_START;
57 __bss_start = .;
58 .bss : { *(.bss) }
59 _end = .;
60
Nicolas Pitre3bd2cbb2011-04-21 21:45:08 -040061 . = ALIGN(8); /* the stack must be 64-bit aligned */
Russell Kingb0c4d4e2010-11-22 12:00:59 +000062 .stack : { *(.stack) }
Linus Torvalds1da177e2005-04-16 15:20:36 -070063
64 .stab 0 : { *(.stab) }
65 .stabstr 0 : { *(.stabstr) }
66 .stab.excl 0 : { *(.stab.excl) }
67 .stab.exclstr 0 : { *(.stab.exclstr) }
68 .stab.index 0 : { *(.stab.index) }
69 .stab.indexstr 0 : { *(.stab.indexstr) }
70 .comment 0 : { *(.comment) }
71}
72