The NetBSD Project

CVS log for src/sys/kern/exec_elf.c

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:10 2012 UTC (2 days, 20 hours ago) by yamt
Branch: yamt-pagecache
Changes since 1.32.2.1: +41 -28 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Tue May 22 02:40:05 2012 UTC (4 days, 4 hours ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, HEAD
Changes since 1.38: +41 -28 lines
Diff to previous 1.38 (colored)

- Recognize the SuSE ABI note.
- Restructure the code to do the checking in the appropriate note type,
and harmonize all the checks to be positive.
- Print only the tag data being careful not to overrun the allocated buffer.

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:03 2012 UTC (3 weeks, 5 days ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.33.2.1: +4 -3 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

sync to latest -current.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:22 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.32: +39 -11 lines
Diff to previous 1.32 (colored)

sync with head

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Apr 12 17:05:36 2012 UTC (6 weeks, 1 day ago) by riz
Branch: netbsd-6
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Pull up following revision(s) (requested by martin in ticket #175):
	sys/kern/kern_exit.c: revision 1.238
	tests/lib/libc/gen/posix_spawn/t_fileactions.c: revision 1.4
	tests/lib/libc/gen/posix_spawn/t_fileactions.c: revision 1.5
	sys/uvm/uvm_extern.h: revision 1.183
	lib/libc/gen/posix_spawn_fileactions.c: revision 1.2
	sys/kern/kern_exec.c: revision 1.348
	sys/kern/kern_exec.c: revision 1.349
	sys/compat/netbsd32/syscalls.master: revision 1.95
	sys/uvm/uvm_glue.c: revision 1.159
	sys/uvm/uvm_map.c: revision 1.317
	sys/compat/netbsd32/netbsd32.h: revision 1.95
	sys/kern/exec_elf.c: revision 1.38
	sys/sys/spawn.h: revision 1.2
	sys/sys/exec.h: revision 1.135
	sys/compat/netbsd32/netbsd32_execve.c: revision 1.34
Rework posix_spawn locking and memory management:
 - always provide a vmspace for the new proc, initially borrowing from proc0
   (this part fixes PR 46286)
 - increase parallelism between parent and child if arguments allow this,
   avoiding a potential deadlock on exec_lock
 - add a new flag for userland to request old (lockstepped) behaviour for
   better error reporting
 - adapt test cases to the previous two and add a new variant to test the
   diagnostics flag
 - fix a few memory (and lock) leaks
 - provide netbsd32 compat
Fix asynchronous posix_spawn child exit status (and test for it).

Revision 1.38 / (download) - annotate - [select for diffs], Sun Apr 8 11:27:44 2012 UTC (6 weeks, 5 days ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base9
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored)

Rework posix_spawn locking and memory management:
 - always provide a vmspace for the new proc, initially borrowing from proc0
   (this part fixes PR 46286)
 - increase parallelism between parent and child if arguments allow this,
   avoiding a potential deadlock on exec_lock
 - add a new flag for userland to request old (lockstepped) behaviour for
   better error reporting
 - adapt test cases to the previous two and add a new variant to test the
   diagnostics flag
 - fix a few memory (and lock) leaks
 - provide netbsd32 compat

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:26 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.33: +36 -10 lines
Diff to previous 1.33 (colored)

merge to -current.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Feb 11 23:16:16 2012 UTC (3 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.36: +14 -3 lines
Diff to previous 1.36 (colored)

Add a posix_spawn syscall, as discussed on tech-kern.
Based on the summer of code project by Charles Zhang, heavily reworked
later by me - all bugs are likely mine.
Ok: core, releng.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Feb 4 18:12:02 2012 UTC (3 months, 2 weeks ago) by joerg
Branch: MAIN
Changes since 1.35: +9 -3 lines
Diff to previous 1.35 (colored)

Add AuxInfo record with the base address of the main thread.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Feb 3 20:11:54 2012 UTC (3 months, 3 weeks ago) by matt
Branch: MAIN
Changes since 1.34: +16 -6 lines
Diff to previous 1.34 (colored)

Add a hook for freeing an ep_emul_arg.  Add a wrapper routine
(exec_free_emul_arg) to call the hook and then clear the ep_emul_arg
and ep_emul_arg_free members in the exec_package.
Change users/accessors to use these routines.
Approved by releng.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Feb 1 21:49:52 2012 UTC (3 months, 3 weeks ago) by matt
Branch: MAIN
Changes since 1.33: +5 -6 lines
Diff to previous 1.33 (colored)

Use kmem instead of malloc.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:25 2011 UTC (6 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Aug 27 17:53:21 2011 UTC (8 months, 4 weeks ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

In execve1(), don't assume VM_MIN_ADDRESS is 0 for PIE executables.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Aug 2 16:44:01 2011 UTC (9 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.30: +5 -2 lines
Diff to previous 1.30 (colored)

Add SuSE note

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jul 19 19:45:36 2011 UTC (10 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.29: +9 -2 lines
Diff to previous 1.29 (colored)

don't produce diagnostics for GNU tags

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:25 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.27: +6 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:06 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.13.2.3: +1 -0 lines
Diff to previous 1.13.2.3 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 7 05:09:12 2011 UTC (14 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)

Pass down ELF Auxillary Vectors for static NetBSD binaries too.
Rename __libc_init to _libc_init and call it explicitly from CSU code.
This enforces the constructor run order for newly linked programs.
Keep it as constructor with run-once semantic for binary compatibility.
Implement dl_iterate_phdr for statically linked programs.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:12 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.13.2.2: +36 -30 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored)

sync with head

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:43 2011 UTC (15 months, 1 week ago) by bouyer
Branch: bouyer-quota2
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 15 11:43:53 2011 UTC (15 months, 1 week ago) by pooka
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored)

augment comment

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:24 2010 UTC (19 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.12.2.2: +31 -28 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD (-D20101022).

Revision 1.9.82.4 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:30 2010 UTC (19 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.82.3: +33 -30 lines
Diff to previous 1.9.82.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

sync with head

Revision 1.27 / (download) - annotate - [select for diffs], Thu Oct 7 02:14:02 2010 UTC (19 months, 2 weeks ago) by chs
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

when we use a fake data section, make sure that the start is page-aligned.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Sep 11 20:49:28 2010 UTC (20 months, 2 weeks ago) by chs
Branch: MAIN
Changes since 1.25: +19 -13 lines
Diff to previous 1.25 (colored)

always supply an auxiliary vector for linux ELF processes.
static executables (such as newer versions of /sbin/ldconfig)
require this to work properly.  since static executables
also don't have a PT_PHDR entry, use the same heuristic as
linux does to provide a value for AT_PHDR in this case.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Sep 7 21:32:03 2010 UTC (20 months, 2 weeks ago) by joerg
Branch: MAIN
Changes since 1.24: +6 -8 lines
Diff to previous 1.24 (colored)

Remember the end of the last text segment and set up a fake data segment
if size 0 and starting after the text segments, if no data segment was
found. Unbreaks sbrk on platforms where all loaded segments are
executable (PR 43817). The cast of executable segments after data
segments is left out for now.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Aug 20 14:59:53 2010 UTC (21 months ago) by joerg
Branch: MAIN
Changes since 1.23: +18 -19 lines
Diff to previous 1.23 (colored)

Allow ELF objects with more than two PT_LOAD sections. Go creates such
binaries by default with separate sections for executable, writeable
data and constants. Use the same heuristic as FreeBSD to match up the
text and data segment assumptions.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:24 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.12.2.1: +4 -4 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD.

Revision 1.9.82.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:37 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.82.2: +85 -82 lines
Diff to previous 1.9.82.2 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:52 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.13.2.1: +5 -5 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

sync with head

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:11 2010 UTC (23 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 6 06:20:16 2010 UTC (23 months, 2 weeks ago) by dholland
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Improve previous: there were two printfs and I'd only noticed and fixed
one of them. PR 43217.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:56 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.13: +83 -80 lines
Diff to previous 1.13 (colored)

sync with head

Revision 1.21 / (download) - annotate - [select for diffs], Sun May 2 06:35:21 2010 UTC (2 years ago) by dholland
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Don't printf a userspace pointer; print the copied-in kernel version
instead, now that it's readily available. Fixes PR 43217.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:08 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.12: +81 -66 lines
Diff to previous 1.12 (colored)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 2 14:11:18 2010 UTC (2 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.19: +5 -4 lines
Diff to previous 1.19 (colored)

fix debugging printf.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Mar 22 22:10:10 2010 UTC (2 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.18: +10 -16 lines
Diff to previous 1.18 (colored)

When choosing the start address of a dynamic (ie relocatable) executable,
respect the alignment in the ELF phdr.
Also, for correctness, use the maximum alignment of the PT_LOAD
sections rather than just the first one found.
Also, use more meaningful types.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 20 01:52:16 2010 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored)

more debugging compilation fixes.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 20 01:47:12 2010 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.16: +5 -3 lines
Diff to previous 1.16 (colored)

fix debugging code.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Mar 20 01:45:30 2010 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.15: +12 -30 lines
Diff to previous 1.15 (colored)

minimize ifdefs and avoid duplicated code.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 19 22:08:13 2010 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.14: +74 -50 lines
Diff to previous 1.14 (colored)

- Make maximum memory limits for various things #define constants and use the
  consistently across the code.
- Re-do note parsing code to read the section headers instead of the program
  headers because the new binutils merge all the note sections in one program
  header. This fixes all the pax note parsing which has been broken for all
  binaries built with the new binutils.
- Add diagnostics to the note parsing code to detect malformed binaries.
- Allocate and free note scratch space only once, not once per note.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 15 20:35:20 2010 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

rename DEBUG_ASLR -> PAX_ASLR_DEBUG

Revision 1.9.82.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:15 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.82.1: +19 -4 lines
Diff to previous 1.9.82.1 (colored) to branchpoint 1.9 (colored)

sync with head

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 22 19:46:18 2010 UTC (2 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.12: +15 -3 lines
Diff to previous 1.12 (colored)

Run binaries with ELF_TYPE==DYN at virtual address PAGE_SIZE rather
than 0. This is still not the intent of PIE, but it allows them to
run with VA 0 disabled.
(The PAX_ASLR stuff which should deal with this needs work.)
CV: ----------------------------------------------------------------------

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 14 00:48:35 2009 UTC (2 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.11: +6 -3 lines
Diff to previous 1.11 (colored)

Merge from matt-nb5-mips64

Revision 1.9.82.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9: +649 -338 lines
Diff to previous 1.9 (colored)

sync with head.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:37 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.11.2.1: +916 -0 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.9.78.1 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:18 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.9: +649 -338 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with HEAD.

Revision 1.11.2.1, Wed Dec 17 20:51:35 2008 UTC (3 years, 5 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.11: +0 -916 lines
FILE REMOVED

file exec_elf.c was added on branch nick-hppapmap on 2009-01-19 13:19:37 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:35 2008 UTC (3 years, 5 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: nick-hppapmap
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

kill MALLOC and FREE macros.

Revision 1.9.86.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:07 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.9: +649 -338 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:06 2008 UTC (3 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.9: +649 -338 lines
Diff to previous 1.9 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Wed Dec 11 05:32:43 1996 UTC (15 years, 5 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.6.4.1: +20 -7 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

From trunk:
Change the exec locking protocol to fix a deadlock.

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Thu Dec 5 06:41:12 1996 UTC (15 years, 5 months ago) by rat
Branch: netbsd-1-2
Changes since 1.6: +7 -3 lines
Diff to previous 1.6 (colored)

Patch request from frank@fwi.uva.nl (Frank van der Linden)

>Fixes a problem with Linux ELF binaries which contain only one loadable
>section.  The code expected 2 loadable sections (text and data), and if it
>did not get those totally wrong values for the data address and size were
>used.

Revision 1.9, Fri Sep 20 22:33:23 1996 UTC (15 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-lazymbuf, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, yamt-idlelwp-base8, yamt-idlelwp, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej_scsipi, thorpej-vnode-attr-base, thorpej-vnode-attr, thorpej-signal-base, thorpej-signal, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base, thorpej-devvp, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, newlock-base, newlock, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, nathanw_sa_before_merge, nathanw_sa_base, mjf-ufs-trans-base, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, marc-pcmcia-base, ktrace-lwp-base, ktrace-lwp, kqueue-base, kqueue, kent-audio2-base, kent-audio2, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, ifpoll-base, ifpoll, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, haad-dm-base1, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, gdamore-uart-base, gdamore-uart, fvdl-softdep-base, elad-kernelauth-nbase, eeh-devprop-base, eeh-devprop, cube-autoconf-base, cube-autoconf, chs-ubc2-newbase, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp-base, ad-audiomp
Branch point for: yamt-nfs-mp, mjf-devfs2, haad-dm
Changes since 1.8: +1 -1 lines
FILE REMOVED

rename exec_elf.c to exec_elf32.c, since it execs 32-bit ELF.  exec_elf32.c
was copied from exec_elf.c on the CVS server to keep the logs intact.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 14 18:15:55 1996 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.7: +72 -6 lines
Diff to previous 1.7 (colored)

Merge pagedvn changes from OpenBSD and added mips defines. Also added
ELF_MAP_PAGE_ZERO define. The entry point computation is different than
the one OpenBSD uses.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 13 18:35:25 1996 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.6: +8 -10 lines
Diff to previous 1.6 (colored)

- Pass the Elf exec header in the emulation dependent probe functions.
- remove static from elf_read_from().

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:18 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.5: +7 -2 lines
Diff to previous 1.5 (colored)

More proto fixes

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 9 13:25:54 1996 UTC (16 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

Use a default, 'safe' address to map the loader to in case the an emulation-
specific probe function did not specify it. It picks the same address
as mmap() does for a non-fixed map at address 0. See also the comment
around a similar line of code in vm/vm_mmap.c.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 16 23:07:18 1996 UTC (16 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.3: +40 -93 lines
Diff to previous 1.3 (colored)

* Don't rely on the protection bits of segments anymore to decide whether
  it's text or data; use the entry point instead (this solves some trouble
  with ELF executables with strange permissions)
* Incorporate some fixes from r_friedl@informatik.uni-kl.de sent to
  netbsd-bugs a while ago

Revision 1.3 / (download) - annotate - [select for diffs], Sat Sep 16 00:28:08 1995 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.2: +3 -6 lines
Diff to previous 1.2 (colored)

s/memcmp/bcmp/

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 30 02:57:20 1995 UTC (16 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.1: +1 -2 lines
Diff to previous 1.1 (colored)

Remove unused define

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 22 21:29:53 1995 UTC (16 years, 11 months ago) by fvdl
Branch: MAIN

Generic mi ELF loader; delete Linux and Svr4 compat conf entries and
add generic ELF entry to exec_conf.c

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>