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