summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_exec_elf32.c
AgeCommit message (Collapse)Author
1999-10-25Update to match new SVR4-style definition names in <sys/exec_elf.h>.kleink
1999-04-30compute the value to be used for e_arglen via howmany(value, sizeof (char *)),cgd
rather than just "value / sizeof (char *)". While in these cases the latter works as well, the former's a better example for other uses to copy (since it handles the non-integral multiple case correctly).
1999-02-09const poisoning.christos
1998-11-05Make sure the interpreter string is long enough to check against.erh
1998-10-23Include linux_errno.h to fix the recent error->errno losage.veego
1998-10-23Change linux_error to native_to_linux_errno. Add some (unrelated) debugging ↵erh
printfs.
1998-10-07The siginfo include line is not needed here anymore.erh
1998-10-04unobfuscate: !strncmp() != 0 -> strncmp() == 0christos
1998-10-04Fix wrong strncmp test.fvdl
1998-10-04Assign my copyright to TNF. Merge with others were appropriate.fvdl
Regen syscall files after script change.
1998-10-03Remove stray debugging printfschristos
1998-10-03Attempt to fix the mess.christos
1998-10-01Split compat/linux/linux_exec.c into common, elf and a.out parts.erh
1998-09-11Substantial signal handling changes:mycroft
* Increase the size of sigset_t to accomodate 128 signals -- adding new versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and sys_sigsuspend() to handle the changed arguments. * Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(), sys_sigpending() and sys_sigsuspend() into separate functions, and call them from all the emulations rather than hard-coding everything. (Avoids uses the stackgap crap for these system calls.) * Add a new flag (p_checksig) to indicate that a process may have signals pending and userret() needs to do the full (slow) check. * Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE. * Correct emulation bugs with restoring SS_ONSTACK. * Make the signal mask in the sigcontext always use the emulated mask format. * Store signals internally in sigaction structures, rather than maintaining a bunch of little sigsets for each SA_* bit. * Keep track of where we put the signal trampoline, rather than figuring it out in *_sendsig(). * Issue a warning when a non-emulated sigaction bit is observed. * Add missing emulated signals, and a native SIGPWR (currently not used). * Implement the `not reset when caught' semantics for relevant signals. Note: Only code touched by the i386 port has been modified. Other ports and emulations need to be updated.
1998-09-05Assign copyright to TNF.christos
1998-08-09bzero->memset, bcopy->memcpy, bcmp->memcmpperry
1998-07-28Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,thorpej
to match the new uio_resid type.
1998-01-24Use linux_setregs().mycroft
1996-10-13catch up with Jason's exec.h inclusion.christos
1996-10-10printf -> kprintf, sprintf -> ksprintfchristos
1996-10-07include <sys/exec.h> rather than <machine/exec.h>cgd
1996-10-05update to compile; needs new enum name 'Elf_sht_progbits'jtk
1996-10-03kill (re)definitions of EXEC_ELF32. They're no longer necessarycgd
(because of the EXEC_* option changes), and now cause warnings.
1996-10-03Fix a section header check that didn't get updated with the elf32/elf64thorpej
changes. Make this compile again with the new EXEC_* options.
1996-09-30Elf32_sht_progbits -> Elf_sht_progbitschristos
1996-09-27slightly clean up some of the changes made when ELF64 support went incgd
1996-09-26adapt ELF-using compat code to use new ELF definitions/code. At this point,cgd
these are restricted to 32-bit ELF, and should be severely cleaned.
1996-09-03Define execv() and execve() consistently across emulations.mycroft
Do path name translation.
1996-06-13Simplify and add comments.christos
1996-06-13- Pass the Elf32_Ehdr in the linux probe function, and use it!christos
Since linux binaries are (mostly) always compiled with gcc, look for the gcc signature in the .comment section header: "\0 GCC: (GNU) ". I've changed the probe order in kern/exec_elf.c to probe for linux ELF binaries first and fall back to SVR4 binaries. This makes statically linked binaries work for both linux and svr4. Note that gcc-compiled svr4 binaries, still contain the operating system signature first and then the GCC signature, so there is no conflict. Yes this is a hack.
1996-04-05Prototyping changes.christos
1995-10-07Prefix names of system call implementation functions with `sys_'.mycroft
1995-09-19Make system calls conform to a standard prototype and bring thosethorpej
prototypes into scope.
1995-08-14Rearrange #includes.mycroft
1995-06-24Use compat_util.[ch].christos
1995-06-22* Changed to use generic ELF code from kern/exec_elf.c (which was takenfvdl
from the svr4 exec code plus the linux compat mods) * Include file change * Add multicast sockopts (from John Brezak)
1995-06-11Don't forget to acknowledge that all the ELF stuff was taken fromfvdl
Christos' svr4 code.
1995-06-11* Make Linux ELF binaries work. Lots of code duplication, but it will have to dofvdl
for now. * Add a sanity check in linux_uselib
1995-05-16Generate the new ps_strings format.mycroft
1995-04-22- added struct emul to all emulations.christos
- removed all setup functions. - added copyargs() functions where needed.
1995-04-07Handle Linux signal tramp code differently. Some changes because of thefvdl
now seperate Linux signal trampoline code. Add linux_sigreturn to syscalls.master.
1995-03-05Added a few more system calls.fvdl
More consistent alternate root file semantics throughout.
1995-02-28Added Linux compat code.fvdl