Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 10 | OUTPUT_ARCH(arm) |
| 11 | ENTRY(_start) |
| 12 | SECTIONS |
| 13 | { |
Catalin Marinas | bff595c | 2009-02-16 11:41:36 +0100 | [diff] [blame] | 14 | /DISCARD/ : { |
| 15 | *(.ARM.exidx*) |
| 16 | *(.ARM.extab*) |
Russell King | 5de813b | 2010-02-25 12:14:40 +0000 | [diff] [blame] | 17 | /* |
| 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 Marinas | bff595c | 2009-02-16 11:41:36 +0100 | [diff] [blame] | 24 | } |
| 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | . = TEXT_START; |
| 27 | _text = .; |
| 28 | |
| 29 | .text : { |
| 30 | _start = .; |
| 31 | *(.start) |
| 32 | *(.text) |
Russell King | c5b8ef6 | 2006-04-09 19:08:42 +0100 | [diff] [blame] | 33 | *(.text.*) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | *(.fixup) |
| 35 | *(.gnu.warning) |
Russell King | 3002b41 | 2011-05-26 11:40:54 +0100 | [diff] [blame] | 36 | *(.glue_7t) |
| 37 | *(.glue_7) |
| 38 | } |
| 39 | .rodata : { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | *(.rodata) |
| 41 | *(.rodata.*) |
Russell King | 3002b41 | 2011-05-26 11:40:54 +0100 | [diff] [blame] | 42 | } |
| 43 | .piggydata : { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | *(.piggydata) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | } |
| 46 | |
Russell King | 3002b41 | 2011-05-26 11:40:54 +0100 | [diff] [blame] | 47 | . = ALIGN(4); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | _etext = .; |
| 49 | |
Russell King | 3002b41 | 2011-05-26 11:40:54 +0100 | [diff] [blame] | 50 | .got.plt : { *(.got.plt) } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | _got_start = .; |
| 52 | .got : { *(.got) } |
| 53 | _got_end = .; |
Nicolas Pitre | 72bf0bc | 2011-05-27 22:25:26 -0400 | [diff] [blame^] | 54 | |
| 55 | /* ensure the zImage file size is always a multiple of 64 bits */ |
| 56 | /* (without a dummy byte, ld just ignores the empty section) */ |
| 57 | .pad : { BYTE(0); . = ALIGN(8); } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | _edata = .; |
| 59 | |
| 60 | . = BSS_START; |
| 61 | __bss_start = .; |
| 62 | .bss : { *(.bss) } |
| 63 | _end = .; |
| 64 | |
Nicolas Pitre | 3bd2cbb | 2011-04-21 21:45:08 -0400 | [diff] [blame] | 65 | . = ALIGN(8); /* the stack must be 64-bit aligned */ |
Russell King | b0c4d4e | 2010-11-22 12:00:59 +0000 | [diff] [blame] | 66 | .stack : { *(.stack) } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | |
| 68 | .stab 0 : { *(.stab) } |
| 69 | .stabstr 0 : { *(.stabstr) } |
| 70 | .stab.excl 0 : { *(.stab.excl) } |
| 71 | .stab.exclstr 0 : { *(.stab.exclstr) } |
| 72 | .stab.index 0 : { *(.stab.index) } |
| 73 | .stab.indexstr 0 : { *(.stab.indexstr) } |
| 74 | .comment 0 : { *(.comment) } |
| 75 | } |
| 76 | |