Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 round textsize only if the binary is demand...
details: https://anonhg.NetBSD.org/src/rev/40b82369526e
branches: trunk
changeset: 479660:40b82369526e
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Dec 17 08:25:35 1999 +0000
description:
round textsize only if the binary is demand-pagable
(for backward compatibility)
diffstat:
sys/arch/sh3/sh3/coff_exec.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 9214289d2ce7 -r 40b82369526e sys/arch/sh3/sh3/coff_exec.c
--- a/sys/arch/sh3/sh3/coff_exec.c Fri Dec 17 08:10:59 1999 +0000
+++ b/sys/arch/sh3/sh3/coff_exec.c Fri Dec 17 08:25:35 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: coff_exec.c,v 1.3 1999/12/16 16:50:08 msaitoh Exp $ */
+/* $NetBSD: coff_exec.c,v 1.4 1999/12/17 08:25:35 msaitoh Exp $ */
/*
* Copyright (c) 1994, 1995 Scott Bartram
@@ -356,7 +356,9 @@
sh.s_size, sh.s_scnptr));
epp->ep_taddr = COFF_ALIGN(sh.s_vaddr);
offset = sh.s_scnptr - (sh.s_vaddr - epp->ep_taddr);
- epp->ep_tsize = round_page(sh.s_size + (sh.s_vaddr - epp->ep_taddr));
+ epp->ep_tsize = sh.s_size + (sh.s_vaddr - epp->ep_taddr);
+ if (!(offset & PAGE_MASK) && !(epp->ep_taddr & PAGE_MASK))
+ epp->ep_tsize = round_page(epp->ep_tsize);
/*
* check if vnode is in open for writing, because we want to
Home |
Main Index |
Thread Index |
Old Index