]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds
ArmVirtPkg: use global section alignment in custom linker script
[mirror_edk2.git] / ArmVirtPkg / PrePi / Scripts / PrePi-PIE.lds
CommitLineData
f9a9d2dc
AB
1#/** @file\r
2#\r
3# Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>\r
4#\r
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13#**/\r
14\r
15SECTIONS\r
16{\r
b1e3967b 17 .text 0x0 : ALIGN(CONSTANT(COMMONPAGESIZE)) {\r
f9a9d2dc
AB
18 PROVIDE(__reloc_base = .);\r
19\r
20 *(.text .text*)\r
21 *(.got .got*)\r
22 *(.rodata .rodata*)\r
23 *(.data .data*)\r
b1e3967b 24 *(.bss .bss*)\r
f9a9d2dc
AB
25\r
26 . = ALIGN(0x20);\r
27 PROVIDE(__reloc_start = .);\r
28 *(.rela .rela*)\r
29 PROVIDE(__reloc_end = .);\r
30 }\r
f9a9d2dc
AB
31\r
32 /DISCARD/ : {\r
33 *(.note.GNU-stack)\r
34 *(.gnu_debuglink)\r
35 *(.interp)\r
36 *(.dynamic)\r
37 *(.dynsym)\r
38 *(.dynstr)\r
39 *(.hash)\r
40 *(.comment)\r
41 }\r
42}\r