]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/PrePi/Scripts/PrePi-PIE.lds
BaseTools: Fix parse OFFSET_OF get wrong offset
[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 PROVIDE(__reloc_base = .);
18
19 . = PECOFF_HEADER_SIZE;
20 .text : ALIGN(CONSTANT(COMMONPAGESIZE)) {
21 *(.text .text*)
22 *(.got .got*)
23 *(.rodata .rodata*)
24 *(.data .data*)
25 *(.bss .bss*)
26
27 . = ALIGN(0x20);
28 PROVIDE(__reloc_start = .);
29 *(.rel .rel.*)
30 *(.rela .rela.*)
31 PROVIDE(__reloc_end = .);
32 }
33
34 .note (INFO) : { *(.note.gnu.build-id) }
35
36 /DISCARD/ : {
37 *(.note.GNU-stack)
38 *(.gnu.hash)
39 *(.gnu_debuglink)
40 *(.interp)
41 *(.dynamic)
42 *(.dynsym)
43 *(.dynstr)
44 *(.hash)
45 *(.comment)
46 }
47 }