]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/Scripts/uefi-aarch64-bootstrap/model.lds.S
ArmVirtPkg: ArmVirtQemu: expose only 64-bit entry point for v3.0+ SMBIOS
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / Scripts / uefi-aarch64-bootstrap / model.lds.S
CommitLineData
e6f3ed43
LL
1/*\r
2 * model.lds.S - simple linker script for stand-alone Linux booting\r
3 *\r
4 * Copyright (C) 2011, 2012 ARM Limited.\r
5 * All rights reserved.\r
6 *\r
7 * Redistribution and use in source and binary forms, with or without\r
8 * modification, are permitted provided that the following conditions are\r
9 * met:\r
10 *\r
11 * * Redistributions of source code must retain the above copyright\r
12 * notice, this list of conditions and the following disclaimer.\r
13 * * Redistributions in binary form must reproduce the above copyright\r
14 * notice, this list of conditions and the following disclaimer in\r
15 * the documentation and/or other materials provided with the\r
16 * distribution.\r
17 * * Neither the name of ARM nor the names of its contributors may be\r
18 * used to endorse or promote products derived from this software\r
19 * without specific prior written permission.\r
20 *\r
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS\r
22 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
23 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\r
24 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r
25 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED\r
27 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r
28 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
32 *\r
33 * This license can also be found in the LICENSE.TXT file.\r
34 */\r
35\r
36OUTPUT_FORMAT("elf64-littleaarch64")\r
37OUTPUT_ARCH(aarch64)\r
38TARGET(binary)\r
39\r
40#ifdef BOOT1\r
41INPUT(./boot1.o)\r
42#endif\r
43\r
44#ifdef BOOT2\r
45INPUT(./boot2.o)\r
46#endif\r
47\r
48#ifdef BOOT3\r
49INPUT(./boot3.o)\r
50#endif\r
51\r
52#ifdef BOOT3F\r
53INPUT(./boot3f.o)\r
54#endif\r
55\r
56SECTIONS\r
57{\r
91c38d4e 58 . = PHYS_OFFSET;\r
e6f3ed43 59#ifdef BOOT1\r
91c38d4e 60 .text : { boot1.o }\r
e6f3ed43
LL
61#endif\r
62\r
63#ifdef BOOT2\r
91c38d4e 64 .text : { boot2.o }\r
e6f3ed43
LL
65#endif\r
66\r
67#ifdef BOOT3\r
91c38d4e 68 .text : { boot3.o }\r
e6f3ed43
LL
69#endif\r
70\r
71#ifdef BOOT3F\r
91c38d4e 72 .text : { boot3f.o }\r
e6f3ed43
LL
73#endif\r
74\r
91c38d4e
RC
75 .data : { *(.data) }\r
76 .bss : { *(.bss) }\r
e6f3ed43 77}\r