summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/stand/efiboot/self_reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/armv7/stand/efiboot/self_reloc.c')
-rw-r--r--sys/arch/armv7/stand/efiboot/self_reloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/armv7/stand/efiboot/self_reloc.c b/sys/arch/armv7/stand/efiboot/self_reloc.c
index 44603fb353c..4e56237d38d 100644
--- a/sys/arch/armv7/stand/efiboot/self_reloc.c
+++ b/sys/arch/armv7/stand/efiboot/self_reloc.c
@@ -24,8 +24,7 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-#include <sys/types.h>
+#include <sys/param.h>
#include <sys/exec_elf.h>
#include <machine/reloc.h>
@@ -69,7 +68,7 @@ self_reloc(Elf_Addr baseaddr, ElfW_Dyn *dynamic)
{
Elf_Word relsz, relent;
Elf_Addr *newaddr;
- ElfW_Rel *rel;
+ ElfW_Rel *rel = NULL;
ElfW_Dyn *dynp;
/*