diff options
author | Steve McIntyre <steve@einval.com> | 2022-06-23 00:16:56 +0100 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2022-06-23 00:16:56 +0100 |
commit | e6ace38abd705fbe24349152b7c90d473404e86e (patch) | |
tree | 50e7a2d6b00d650fcbee8b0c54f0a0eacefc6929 /gnu-efi/gnuefi/crt0-efi-x86_64.S | |
parent | 8529e0f7f70f427a7202815061362eceba6bfc50 (diff) | |
download | efi-boot-shim-upstream/15.6.tar.gz efi-boot-shim-upstream/15.6.zip |
New upstream version 15.6upstream/15.6
Diffstat (limited to 'gnu-efi/gnuefi/crt0-efi-x86_64.S')
-rw-r--r-- | gnu-efi/gnuefi/crt0-efi-x86_64.S | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gnu-efi/gnuefi/crt0-efi-x86_64.S b/gnu-efi/gnuefi/crt0-efi-x86_64.S index 1a87dbd3..0d99c151 100644 --- a/gnu-efi/gnuefi/crt0-efi-x86_64.S +++ b/gnu-efi/gnuefi/crt0-efi-x86_64.S @@ -59,18 +59,16 @@ _start: call efi_main addq $8, %rsp -.exit: ret // hand-craft a dummy .reloc section so EFI knows it's a relocatable executable: .data .dummy0: .dummy1: - .long 0 + .4byte 0 #define IMAGE_REL_ABSOLUTE 0 .section .reloc, "a" - .long .dummy1-.dummy0 // Page RVA - .long 10 // Block Size (2*4+2) - .word (IMAGE_REL_ABSOLUTE<<12) + 0 // reloc for dummy - + .4byte .dummy1-.dummy0 // Page RVA + .4byte 10 // Block Size (2*4+2) + .2byte (IMAGE_REL_ABSOLUTE<<12) + 0 // reloc for dummy |