Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/gnu-efi/dist/gnuefi gnu-efi: x86_64 build f...



details:   https://anonhg.NetBSD.org/src/rev/7697e41baf50
branches:  trunk
changeset: 1024069:7697e41baf50
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Oct 08 23:08:06 2021 +0000

description:
gnu-efi: x86_64 build fixes for NetBSD

diffstat:

 sys/external/bsd/gnu-efi/dist/gnuefi/reloc_x86_64.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 94a44ba4b128 -r 7697e41baf50 sys/external/bsd/gnu-efi/dist/gnuefi/reloc_x86_64.c
--- a/sys/external/bsd/gnu-efi/dist/gnuefi/reloc_x86_64.c       Fri Oct 08 23:04:02 2021 +0000
+++ b/sys/external/bsd/gnu-efi/dist/gnuefi/reloc_x86_64.c       Fri Oct 08 23:08:06 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reloc_x86_64.c,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $    */
+/*     $NetBSD: reloc_x86_64.c,v 1.2 2021/10/08 23:08:06 jmcneill Exp $        */
 
 /* reloc_x86_64.c - position independent x86_64 ELF shared object relocator
    Copyright (C) 1999 Hewlett-Packard Co.
@@ -40,7 +40,14 @@
 #include <efi.h>
 #include <efilib.h>
 
+#ifdef __NetBSD__
+#include <sys/types.h>
+#include <sys/exec_elf.h>
+#else
 #include <elf.h>
+#endif
+
+EFI_STATUS _relocate (long, Elf64_Dyn *, EFI_HANDLE, EFI_SYSTEM_TABLE *);
 
 EFI_STATUS _relocate (long ldbase, Elf64_Dyn *dyn,
                      EFI_HANDLE image EFI_UNUSED,



Home | Main Index | Thread Index | Old Index