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 Allow this to compile o...
details: https://anonhg.NetBSD.org/src/rev/6abf102043d1
branches: trunk
changeset: 365531:6abf102043d1
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Aug 20 09:50:18 2018 +0000
description:
Allow this to compile on NetBSD
diffstat:
sys/external/bsd/gnu-efi/dist/gnuefi/reloc_aarch64.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 7de513c349e1 -r 6abf102043d1 sys/external/bsd/gnu-efi/dist/gnuefi/reloc_aarch64.c
--- a/sys/external/bsd/gnu-efi/dist/gnuefi/reloc_aarch64.c Mon Aug 20 08:53:48 2018 +0000
+++ b/sys/external/bsd/gnu-efi/dist/gnuefi/reloc_aarch64.c Mon Aug 20 09:50:18 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: reloc_aarch64.c,v 1.1.1.1 2018/08/16 18:17:47 jmcneill Exp $ */
+/* $NetBSD: reloc_aarch64.c,v 1.2 2018/08/20 09:50:18 jmcneill Exp $ */
/* reloc_aarch64.c - position independent x86 ELF shared object relocator
Copyright (C) 2014 Linaro Ltd. <ard.biesheuvel%linaro.org@localhost>
@@ -39,7 +39,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