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