Age | Commit message (Collapse) | Author |
|
|
|
* exec/exec.c (load_section): Call i`hurd_safe_copyin' instead of `memcpy'.
Handle error case.
(check_gzip): Likewise.
(check_bzip2): Likewise.
|
|
* exec/exec.c (check_gzip.zipread): Add `n' to `zipread_pos' to fix infinite loop.
(check_bzip2.zipread): Likewise.
(check_gzip): Set `file_data' and `file_size' fields after calling `finish'
instead of before.
(check_bzip2): Likewise.
|
|
* exec/exec.c (map): When e->file_data is not NULL, return it plus
`posn'.
(prepare_in_memory): Call prepare_stream to clear stream positions.
|
|
* exec/Makefile (SRCS): Refer to `$(gzip-sources)' and
`$(bzip2-sources)' instead of listing files individually.
(gzip-sources, bzip2-sources): New variable.
(gzip-objects, bzip2-objects): Derive from the above variables.
|
|
* exec/hashexec.c (check_hashbang): Set `e->error' to 0 before
calling map(). On error, check `e->error' instead of `errno', and
default `e->error' to ENOEXEC.
|
|
* exec/exec.c (do_exec): Do not deallocate oldtask when
newtask != oldtask before the `out:' label since it is done
again after it.
|
|
* exec.c (finish): Set FILE_DATA and MAP_BUFFER members of E to NULL
after freeing them.
|
|
* ChangeLog: Wipe out content, and add instructions about how to get it back.
* auth/ChangeLog: Remove file.
* benchmarks/ChangeLog: Likewise.
* boot/ChangeLog: Likewise.
* bsdfsck/ChangeLog: Likewise.
* config/ChangeLog: Likewise.
* console-client/ChangeLog: Likewise.
* console/ChangeLog: Likewise.
* daemons/ChangeLog: Likewise.
* defpager/ChangeLog: Likewise.
* doc/ChangeLog: Likewise.
* exec/ChangeLog: Likewise.
* ext2fs/ChangeLog: Likewise.
* fatfs/ChangeLog: Likewise.
* fstests/ChangeLog: Likewise.
* ftpfs/ChangeLog: Likewise.
* hostmux/ChangeLog: Likewise.
* hurd/ChangeLog: Likewise.
* include/ChangeLog: Likewise.
* init/ChangeLog: Likewise.
* isofs/ChangeLog: Likewise.
* libcons/ChangeLog: Likewise.
* libdirmgt/ChangeLog: Likewise.
* libdiskfs/ChangeLog: Likewise.
* libfshelp/ChangeLog: Likewise.
* libftpconn/ChangeLog: Likewise.
* libhurdbugaddr/ChangeLog: Likewise.
* libihash/ChangeLog: Likewise.
* libiohelp/ChangeLog: Likewise.
* libnetfs/ChangeLog: Likewise.
* libpager/ChangeLog: Likewise.
* libpipe/ChangeLog: Likewise.
* libports/ChangeLog: Likewise.
* libps/ChangeLog: Likewise.
* libshouldbeinlibc/ChangeLog: Likewise.
* libstore/ChangeLog: Likewise.
* libthreads/ChangeLog: Likewise.
* libtrivfs/ChangeLog: Likewise.
* login/ChangeLog: Likewise.
* mach-defpager/ChangeLog: Likewise.
* nfs/ChangeLog: Likewise.
* nfsd/ChangeLog: Likewise.
* pfinet/ChangeLog: Likewise.
* pflocal/ChangeLog: Likewise.
* proc/ChangeLog: Likewise.
* release/ChangeLog: Likewise.
* serverboot/ChangeLog: Likewise.
* storeio/ChangeLog: Likewise.
* sutils/ChangeLog: Likewise.
* term/ChangeLog: Likewise.
* tmpfs/ChangeLog: Likewise.
* trans/ChangeLog: Likewise.
* ufs-fsck/ChangeLog: Likewise.
* ufs-utils/ChangeLog: Likewise.
* ufs/ChangeLog: Likewise.
* usermux/ChangeLog: Likewise.
* utils/ChangeLog: Likewise.
|
|
* exec.c (prepare): Call PREPARE_STREAM earlier to permit calling
finish_mapping on E even after errors, as is already done in do_exec.
|
|
|
|
casting `time_value *' into `struct timeval *'.
(dump_core): Reimplement timeradd instead of casting `time_value *'
into `struct timeval *'.
|
|
|
|
|
|
* exec.c (check_elf_phdr): Return early on setting ENOEXEC.
Only touch E->info.elf.phdr_addr once, on the PT_LOAD segment that
actually contains the e_phoff location in the file.
(do_exec): If E.info.elf.phdr_addr is zero, don't set BOOT->phdr_size.
|
|
|
|
|
|
* priv.h (struct execdata.info.elf): New field `phdr_addr'.
* exec.c (check_elf): Set E->info.elf.phdr_addr here from e_phoff.
(check_elf_phdr): Don't check for PT_PHDR, remove last two args.
(do_exec): Update callers. Set BOOT->phdr_addr and BOOT->phdr_size
using info saved by check_elf.
|
|
|
|
* exec.c (servercopy): Change signature to avoid casted arguments.
Update callers.
(do_exec, S_exec_setexecdata): Update callers.
|
|
|
|
* priv.h (struct execdata.info.elf): Add `execstack' flag.
* exec.c (check_elf_phdr): Set it according to PT_GNU_STACK's PF_X
flag bit. If no PT_GNU_STACK, default to set.
(do_exec): If flag is clear, remove execute permission from stack.
|
|
* elfcore.c (dump_core): Include null terminator in note name size,
and round up to four byte alignment.
(dump_core: write_note): Don't round OFFSET after each partial write.
(dump_core): Don't round up to page size before writing notes.
Do round up to page size for offset of each PT_LOAD region.
|
|
|
|
* elfcore.c [i386_THREAD_STATE] (fetch_thread_regset): The two types
are not actually identical, must rearrange some members a little.
|
|
|
|
* priv.h (trivfs_protid_t): Type removed (now in trivfs.h).
|
|
|
|
* elfcore.c (dump_core): int -> size_t
|
|
* hashexec.c (check_hashbang): Fix fs id port arg in io_identity call.
|
|
|
|
|
|
* exec.c (prepare): Do io_stat when io_map fails as for when
io_map_cntl fails.
|
|
|
|
* elfcore.c [ALPHA_THREAD_STATE]
(ELF_MACHINE, fetch_thread_regset, fetch_thread_fpregset):
New definitions for Alpha CPU.
|
|
|
|
* priv.h: Include <link.h> to get ElfW macro.
* priv.h, exec.c, main.c, hostarch.c: Use `ElfW(TYPE)' in place
of `Elf32_TYPE' throughout.
|
|
|
|
|
|
* elfcore.c: New file, used by crash server (../trans) to write
ELF core dump files. Thanks to Jon Arney <jarney1@cox.net> for
spurring me to write this, and for helping to test and debug it.
|
|
* core.c: File removed.
* Makefile (DIST_FILES): Remove core.c from the list.
|
|
|
|
|
|
|
|
|
|
|
|
* exec.c (do_exec) [KERN_INVALID_LEDGER]:
Pass extra arguments to task_create for OSF variant.
|
|
|
|
* execmutations.h (SERVERCOPY): New macro.
|
|
|