summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/imgact_coff.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-08-24 10:32:37 +0000
committerdg <dg@FreeBSD.org>1995-08-24 10:32:37 +0000
commit0af2eee79d716c53af10a0fe3d3d7d63ed157799 (patch)
tree25f0d078906126e97e0cdc172dfa96fb9c1f9527 /sys/i386/ibcs2/imgact_coff.c
parentc5cbc782d337dffb51162e0e9255b7c5eb742bee (diff)
downloadFreeBSD-src-0af2eee79d716c53af10a0fe3d3d7d63ed157799.zip
FreeBSD-src-0af2eee79d716c53af10a0fe3d3d7d63ed157799.tar.gz
Moved setting of VTEXT flag into the appropriate image activators. This
fixes a bug where linux binaries would get the flag set inappropriately.
Diffstat (limited to 'sys/i386/ibcs2/imgact_coff.c')
-rw-r--r--sys/i386/ibcs2/imgact_coff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c
index f7e7670..14accfb 100644
--- a/sys/i386/ibcs2/imgact_coff.c
+++ b/sys/i386/ibcs2/imgact_coff.c
@@ -26,7 +26,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: imgact_coff.c,v 1.3 1995/04/08 15:52:30 joerg Exp $
+ * $Id: imgact_coff.c,v 1.4 1995/05/30 08:00:17 rgrimes Exp $
*/
#include <sys/param.h>
@@ -472,6 +472,8 @@ printf("IBCS2: start vm_dsize = 0x%x, vm_daddr = 0x%x end = 0x%x\n",
ctob(vmspace->vm_dsize) + vmspace->vm_daddr );
printf("%s(%d): returning successfully!\n", __FILE__, __LINE__);
}
+ /* Indicate that this file should not be modified */
+ iparams->vnodep->v_flag |= VTEXT;
return 0;
}
OpenPOWER on IntegriCloud