Commit | Line | Data |
---|---|---|
374082df CC |
1 | /* script_test_12.t -- linker script test 12 for gold |
2 | ||
3 | Copyright (C) 2008-2015 Free Software Foundation, Inc. | |
4 | Written by Cary Coutant <ccoutant@gmail.com>. | |
5 | ||
6 | This file is part of gold. | |
7 | ||
8 | This program is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 3 of the License, or | |
11 | (at your option) any later version. | |
12 | ||
13 | This program is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with this program; if not, write to the Free Software | |
20 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | |
21 | MA 02110-1301, USA. */ | |
22 | ||
23 | interleaved = 0; | |
24 | ||
25 | SECTIONS | |
26 | { | |
27 | . = 0x400000 + SIZEOF_HEADERS; | |
28 | ||
29 | .interp : { *(.interp) } | |
30 | .note : { *(.note .note.*) } | |
31 | .rel.dyn : { *(.rel.dyn) } | |
32 | .rela.dyn : { *(.rela.dyn) } | |
33 | .rel.plt : { *(.rel.plt) } | |
34 | .rela.plt : { *(.rela.plt) } | |
35 | .init : { *(.init) } | |
36 | .plt : { *(.plt) } | |
37 | .text : { *(.text) } | |
38 | .fini : { *(.fini) } | |
39 | .rodata : { *(.rodata .rodata.*) } | |
40 | .eh_frame_hdr : { *(.eh_frame_hdr) } | |
41 | .eh_frame : { *(.eh_frame) } | |
42 | ||
43 | . = DATA_SEGMENT_ALIGN(0x1000, 0x1000); | |
44 | ||
45 | .init_array : { | |
46 | __init_array_start = .; | |
47 | *(.init_array); | |
48 | __init_array_end = .; | |
49 | } | |
50 | .fini_array : { *(.fini_array) } | |
51 | .jcr : { *(.jcr) } | |
52 | .dynamic : { *(.dynamic) } | |
53 | .got : { *(.got) } | |
54 | .got.plt : { *(.got.plt) } | |
55 | .data : { *(.data) } | |
56 | .test : { | |
57 | test_array_start = .; | |
58 | *(.x1 .x2 .x3); | |
59 | test_array_end = .; | |
60 | } | |
61 | .bss : { *(.bss) } | |
62 | ||
63 | } |