Deleted Added
full compact
imgact_coff.c (97748) imgact_coff.c (100384)
1/*-
2 * Copyright (c) 1994 Sean Eric Fagan
3 * Copyright (c) 1994 S�ren Schmidt
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 1994 Sean Eric Fagan
3 * Copyright (c) 1994 S�ren Schmidt
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/i386/ibcs2/imgact_coff.c 97748 2002-06-02 20:05:59Z schweikh $
29 * $FreeBSD: head/sys/i386/ibcs2/imgact_coff.c 100384 2002-07-20 02:56:12Z peter $
30 */
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/fcntl.h>
35#include <sys/imgact.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>

--- 290 unchanged lines hidden (view full) ---

328 ((const char*)(imgp->image_header) + sizeof(struct filehdr) +
329 sizeof(struct aouthdr));
330
331 if ((error = exec_extract_strings(imgp)) != 0) {
332 DPRINTF(("%s(%d): return %d\n", __FILE__, __LINE__, error));
333 return error;
334 }
335
30 */
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/fcntl.h>
35#include <sys/imgact.h>
36#include <sys/kernel.h>
37#include <sys/lock.h>

--- 290 unchanged lines hidden (view full) ---

328 ((const char*)(imgp->image_header) + sizeof(struct filehdr) +
329 sizeof(struct aouthdr));
330
331 if ((error = exec_extract_strings(imgp)) != 0) {
332 DPRINTF(("%s(%d): return %d\n", __FILE__, __LINE__, error));
333 return error;
334 }
335
336 exec_new_vmspace(imgp);
336 exec_new_vmspace(imgp, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK);
337 vmspace = imgp->proc->p_vmspace;
338
339 for (i = 0; i < nscns; i++) {
340
341 DPRINTF(("i = %d, scns[i].s_name = %s, scns[i].s_vaddr = %08lx, "
342 "scns[i].s_scnptr = %d\n", i, scns[i].s_name,
343 scns[i].s_vaddr, scns[i].s_scnptr));
344 if (scns[i].s_flags & STYP_NOLOAD) {

--- 140 unchanged lines hidden ---
337 vmspace = imgp->proc->p_vmspace;
338
339 for (i = 0; i < nscns; i++) {
340
341 DPRINTF(("i = %d, scns[i].s_name = %s, scns[i].s_vaddr = %08lx, "
342 "scns[i].s_scnptr = %d\n", i, scns[i].s_name,
343 scns[i].s_vaddr, scns[i].s_scnptr));
344 if (scns[i].s_flags & STYP_NOLOAD) {

--- 140 unchanged lines hidden ---