imgact_elf.c (189919) | imgact_elf.c (189927) |
---|---|
1/*- 2 * Copyright (c) 2000 David O'Brien 3 * Copyright (c) 1995-1996 S�ren Schmidt 4 * Copyright (c) 1996 Peter Wemm 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 David O'Brien 3 * Copyright (c) 1995-1996 S�ren Schmidt 4 * Copyright (c) 1996 Peter Wemm 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/kern/imgact_elf.c 189919 2009-03-17 09:50:40Z kib $"); | 32__FBSDID("$FreeBSD: head/sys/kern/imgact_elf.c 189927 2009-03-17 12:53:28Z kib $"); |
33 34#include "opt_compat.h" 35 36#include <sys/param.h> 37#include <sys/exec.h> 38#include <sys/fcntl.h> 39#include <sys/imgact.h> 40#include <sys/imgact_elf.h> --- 839 unchanged lines hidden (view full) --- 880 AUXARGS_ENTRY(pos, AT_EXECFD, args->execfd); 881 AUXARGS_ENTRY(pos, AT_PHDR, args->phdr); 882 AUXARGS_ENTRY(pos, AT_PHENT, args->phent); 883 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); 884 AUXARGS_ENTRY(pos, AT_PAGESZ, args->pagesz); 885 AUXARGS_ENTRY(pos, AT_FLAGS, args->flags); 886 AUXARGS_ENTRY(pos, AT_ENTRY, args->entry); 887 AUXARGS_ENTRY(pos, AT_BASE, args->base); | 33 34#include "opt_compat.h" 35 36#include <sys/param.h> 37#include <sys/exec.h> 38#include <sys/fcntl.h> 39#include <sys/imgact.h> 40#include <sys/imgact_elf.h> --- 839 unchanged lines hidden (view full) --- 880 AUXARGS_ENTRY(pos, AT_EXECFD, args->execfd); 881 AUXARGS_ENTRY(pos, AT_PHDR, args->phdr); 882 AUXARGS_ENTRY(pos, AT_PHENT, args->phent); 883 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); 884 AUXARGS_ENTRY(pos, AT_PAGESZ, args->pagesz); 885 AUXARGS_ENTRY(pos, AT_FLAGS, args->flags); 886 AUXARGS_ENTRY(pos, AT_ENTRY, args->entry); 887 AUXARGS_ENTRY(pos, AT_BASE, args->base); |
888 if (imgp->execpathp != 0) 889 AUXARGS_ENTRY(pos, AT_EXECPATH, imgp->execpathp); |
|
888 AUXARGS_ENTRY(pos, AT_NULL, 0); 889 890 free(imgp->auxargs, M_TEMP); 891 imgp->auxargs = NULL; 892 893 base--; 894 suword(base, (long)imgp->args->argc); 895 *stack_base = (register_t *)base; --- 500 unchanged lines hidden --- | 890 AUXARGS_ENTRY(pos, AT_NULL, 0); 891 892 free(imgp->auxargs, M_TEMP); 893 imgp->auxargs = NULL; 894 895 base--; 896 suword(base, (long)imgp->args->argc); 897 *stack_base = (register_t *)base; --- 500 unchanged lines hidden --- |