diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-03-07 00:56:31 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-03-07 00:56:31 +0000 |
commit | 847ff76038b62f7e72c79184597cd69b15c248d3 (patch) | |
tree | dd003fa7efd4b8712e0134caab539c28ff29434e | |
parent | 0199a038d0d4a2ab33c419abf2f54b8c2b458e41 (diff) |
2nd bug on the road to shlibs on alpha:
Off by one page when loading.
-rw-r--r-- | sys/kern/exec_elf64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/exec_elf64.c b/sys/kern/exec_elf64.c index 11737344b1f..e0cc9e602f3 100644 --- a/sys/kern/exec_elf64.c +++ b/sys/kern/exec_elf64.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf64.c,v 1.12 2001/02/03 23:32:13 art Exp $ */ +/* $OpenBSD: exec_elf64.c,v 1.13 2001/03/07 00:56:30 niklas Exp $ */ /* * Copyright (c) 1996 Per Fogelstrom @@ -268,7 +268,7 @@ elf64_load_psection(vcset, vp, ph, addr, size, prot) */ if (*addr != ELF64_NO_ADDR) { if (ph->p_align > 1) { - *addr = ELF_ROUND(*addr + ph->p_align, ph->p_align); + *addr = ELF_ROUND(*addr, ph->p_align); uaddr = ELF_TRUNC(ph->p_vaddr, ph->p_align); } else uaddr = ph->p_vaddr; |