1 /* SPDX-License-Identifier: BSD-3-Clause */
3 * crt0-efi-x86_64.S - x86_64 EFI startup code.
4 * Copyright (C) 1999 Hewlett-Packard Co.
5 * Contributed by David Mosberger <davidm@hpl.hp.com>.
6 * Copyright (C) 2005 Intel Corporation
7 * Contributed by Fenghua Yu <fenghua.yu@intel.com>.
21 lea image_base(%rip), %rcx
22 lea _DYNAMIC(%rip), %rdx
39 * hand-craft a dummy .reloc section so EFI knows it's a relocatable
45 #define IMAGE_REL_ABSOLUTE 0
48 .long dummy-label1 /* Page RVA */
49 .long 10 /* Block Size (2*4+2) */
50 .word (IMAGE_REL_ABSOLUTE << 12) + 0 /* reloc for dummy */