summaryrefslogtreecommitdiff
path: root/sys/kern/exec_elf.c
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1996-09-05 17:31:07 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1996-09-05 17:31:07 +0000
commit760b76c0e4c3ab6ca13cfa17f9e921341ca71b79 (patch)
tree045ebb4b9e8d43491c1779471865a1436af1bb7b /sys/kern/exec_elf.c
parent12458dc909f7705f76e62108b9ef42435a146d2e (diff)
ld has some funny things going with alignments...
Diffstat (limited to 'sys/kern/exec_elf.c')
-rw-r--r--sys/kern/exec_elf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 3d8672c3425..6f768c4a779 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.14 1996/08/31 09:24:07 pefo Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.15 1996/09/05 17:31:06 pefo Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -349,6 +349,10 @@ elf_load_file(p, path, epp, ap, last)
for (i = 0; i < eh.e_phnum; i++) {
u_long size = 0;
int prot = 0;
+#ifdef mips
+ if (*last == ELF32_NO_ADDR)
+ addr = ELF32_NO_ADDR; /* GRRRRR!!!!! */
+#endif
switch (ph[i].p_type) {
case PT_LOAD: