artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e57101e
)
ld has some funny things going with alignments...
author
pefo
<pefo@openbsd.org>
Thu, 5 Sep 1996 17:31:06 +0000
(17:31 +0000)
committer
pefo
<pefo@openbsd.org>
Thu, 5 Sep 1996 17:31:06 +0000
(17:31 +0000)
sys/kern/exec_elf.c
patch
|
blob
|
history
diff --git
a/sys/kern/exec_elf.c
b/sys/kern/exec_elf.c
index
3d8672c
..
6f768c4
100644
(file)
--- a/
sys/kern/exec_elf.c
+++ b/
sys/kern/exec_elf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: exec_elf.c,v 1.1
4 1996/08/31 09:24:07
pefo Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.1
5 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: