Commit | Line | Data |
---|---|---|
5d9f66cb CC |
1 | /* script_test_15b.t -- linker script test 15b for gold |
2 | ||
82704155 | 3 | Copyright (C) 2016-2019 Free Software Foundation, Inc. |
5d9f66cb CC |
4 | Written by Cary Coutant <ccoutant@google.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 | /* Test that a .bss section explicitly placed in the middle of a | |
24 | segment has allocated file space. */ | |
25 | ||
26 | /* We won't try to run this program, just ensure that it links | |
27 | as expected. */ | |
28 | ||
29 | PHDRS | |
30 | { | |
31 | text PT_LOAD FLAGS(5); | |
32 | data PT_LOAD FLAGS(6); | |
33 | } | |
34 | ||
35 | SECTIONS | |
36 | { | |
37 | /* With luck this will be enough to get the program working. */ | |
38 | .interp : { *(.interp) } :text | |
39 | .text : { *(.text .text.*) } | |
40 | .rodata : { *(.rodata .rodata.*) } | |
41 | /* Required by the ARM target. */ | |
42 | .ARM.extab : { *(.ARM.extab*) } | |
43 | .ARM.exidx : { *(.ARM.exidx*) } | |
44 | . = ALIGN(0x10000); | |
45 | .dynamic : { *(.dynamic) } | |
46 | .bss : { *(.bss) } :data | |
47 | .data : { *(.data) } | |
48 | .got : { *(.got .toc) } | |
49 | } |