diff options
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index bbdb303..6112771 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.17 1996/03/19 15:02:34 bde Exp $ + * $Id: linux_misc.c,v 1.18 1996/04/07 17:38:49 bde Exp $ */ #include <sys/param.h> @@ -279,7 +279,7 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval) /* * Check various fields in header for validity/bounds. */ - if (a_out->a_text % NBPG || a_out->a_data % NBPG) { + if (a_out->a_text & PAGE_MASK || a_out->a_data & PAGE_MASK) { error = ENOEXEC; goto cleanup; } @@ -311,7 +311,7 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval) * Currently we cannot handle misalinged file offsets, * and so we read in the entire image (what a waste). */ - if (file_offset & PGOFSET) { + if (file_offset & PAGE_MASK) { #ifdef DEBUG printf("uselib: Non page aligned binary %d\n", file_offset); #endif |