Age | Commit message (Collapse) | Author |
|
* 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.
|
|
* hostarch.c (elf_machine_matches_host): Don't recognize EM_486,
since newer <elf.h>'s don't define it any more.
|
|
* hostarch.c (mach_host_elf_machine): Replaced with ...
(elf_machine_matches_host): New function. Instead of returning
an ELF EM_* code, take one and check if it matches the host;
operate only on mach_host_self(), cache results,
Grok CPU_TYPE_{I486,PENTIUM,PENTIUMPRO} to accept EM_386 or EM_486.
Grok POWERPC, ALPHA, HPPA types.
* exec.c (check_elf): Call elf_machine_matches_host instead of
comparing against elf_machine.
(load_section): #if 0 out no-op code that uses elf_machine.
* priv.h (elf_machine_matches_host): Declare it.
(elf_machine, mach_host_elf_machine): Remove decls.
* main.c (main) [!BFD]: Don't call mach_host_elf_machine.
(elf_machine): Variable removed.
|
|
* priv.h (mach_host_elf_machine): New prototype.
* hostarch.c: Include "priv.h".
|
|
|
|
|
|
|
|
|
|
|
|
mach_msg_type_number_t instead of unsigned int. Cast &HOSTINFO to
(natural_t *).
|
|
|
|
|
|
|
|
|
|
|