| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump,
and various #includes that are superfluous.
This leaves compat_linux processes without a coredump callback. If that
ability is desired, someone should update it to use coredump_elf32() and
verify the results...
ok kettenis@
|
| |
|
|
| |
after discussions with beck deraadt kettenis.
|
| |
|
|
|
|
|
|
|
| |
Tweak the handling of ktrace EMUL when changing ktracing: only
generate one per process (not one per thread) and pass the correct
proc pointer down to the VFS layer. Permit generating of NAMI and
CSW records inside ktrace(2) itself.
ok deraadt@ millert@
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Tested with the syscall regression test suite from IBM and Opera.
Requested by deraadt@.
|
| |
|
|
|
|
|
| |
for all the compat layers which are now gone. Linux compat still works
because it always used another method in any case, and nothing looks at
p_os anymore.
ok jsing
|
| |
|
|
|
|
|
|
|
|
| |
This enables the linux_child_return bits that set the TLS base in the
newly forked process.
Before this, processes that had the flag set would get a null pointer and
segfault when trying to access the TLS area.
Chased down and fixed by me. Turned into a proper one line diff by guenther@.
|
| |
|
|
|
|
|
|
| |
Based on Emmanuel Dreyfus work with additions, tricks and adaptations by me.
Lots of help and reviewing by guenther@ and oga@.
Okay guenther@.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
This is more than a simple syscall.This expands TLS support quite a bit.
Also linux_sys_clone() handles CLONE_CHILD_CLEARTID, CLONE_CHILD_SETTID,
CLONE_PARENT_SETTID flags as well as the CLONE_SETTLS by doing what
set_thread_area() is doing.
Next on the list is futex support which should allow compat to cope with
newer Linux kernels.
|
| | |
|
| |
|
|
|
|
| |
NetBSD.
ok kurt@, drahn@, miod@
|
| |
|
|
|
|
|
|
|
| |
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
| |
|
|
|
|
| |
find their interpreter, as the linux ld.so name is unique and not likely to
be found in another /emul/foo hierarchy; allows Opera to run again. Noticed
by sturm@
|
| |
|
|
|
| |
also recognize modern Linux binaries without branding, but with a ``GNU''
ABI note.
|
| |
|
|
| |
ok krw@, ok pyr@
|
| |
|
|
|
|
|
|
| |
version for i386
more architectures and ctob() replacement is being worked on
prodded by and ok miod
|
| |
|
|
|
|
| |
take interp[MAXPATHLEN] off the stack. from mickey, ok otto
while here, switch above from malloc to pool, remove stupid casts
tedu@ miod@ ok
|
| | |
|
| |
|
|
|
|
| |
separate exec format from emulation. consistent naming of freebsd emuls.
not much in the way of functional changes yet.
testing and ok deraadt@ and others along the way.
|
| |
|
|
|
|
|
|
|
| |
add e_flags to struct emul. this stores on/off and native flags.
check for emul enabled in check_exec(). gather all the emuls into a
emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation
into init_main so it cleans up sys_execve codepath. teach sysctl utility
to grok kern.emul hierarchy.
requested and ok deraadt@ some comments from mickey@
|
| |
|
|
|
|
|
|
|
|
| |
use them to correctly emulate linux brk.
update to TNF copyright in linux_exec.c.
from netbsd, mostly from a diff by Kurt Miller in pr3318.
this should fix java. no regressions in testing by kurt and sturm@.
be prepared for "proc size mismatch" -- recompile ps and friends.
ok deraadt@
|
| | |
|
| |
|
|
| |
Use where VTEXT was set in vnode flags before. Doesn't do anything else (yet).
|
| |
|
|
| |
(Look ma, I might have broken the tree)
|
| |
|
|
| |
of a few functions from elf32.
|
| | |
|
| |
|
|
| |
Correctly initialize the vmcmds in linux_exec.
|
| | |
|
| | |
|
| |
|
|
|
| |
was already so for native and sunos, the rest was just
wasting space on it. niels@ millert@ ok
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|