elfload.c (5ef54116ea1c576995f0074b71400bf7bda08cf1) elfload.c (e6e5906b6e0a81718066ca43aef57515026c6624)
1/* This is the Linux kernel elf-loading code, ported into user space */
2
3#include <stdio.h>
4#include <sys/types.h>
5#include <fcntl.h>
6#include <errno.h>
7#include <unistd.h>
8#include <sys/mman.h>

--- 274 unchanged lines hidden (view full) ---

283 regs->regs[15] = infop->start_stack - 16 * 4;
284}
285
286#define USE_ELF_CORE_DUMP
287#define ELF_EXEC_PAGESIZE 4096
288
289#endif
290
1/* This is the Linux kernel elf-loading code, ported into user space */
2
3#include <stdio.h>
4#include <sys/types.h>
5#include <fcntl.h>
6#include <errno.h>
7#include <unistd.h>
8#include <sys/mman.h>

--- 274 unchanged lines hidden (view full) ---

283 regs->regs[15] = infop->start_stack - 16 * 4;
284}
285
286#define USE_ELF_CORE_DUMP
287#define ELF_EXEC_PAGESIZE 4096
288
289#endif
290
291#ifdef TARGET_M68K
292
293#define ELF_START_MMAP 0x80000000
294
295#define elf_check_arch(x) ( (x) == EM_68K )
296
297#define ELF_CLASS ELFCLASS32
298#define ELF_DATA ELFDATA2MSB
299#define ELF_ARCH EM_68K
300
301/* ??? Does this need to do anything?
302#define ELF_PLAT_INIT(_r) */
303
304static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
305{
306 regs->usp = infop->start_stack;
307 regs->sr = 0;
308 regs->pc = infop->entry;
309}
310
311#define USE_ELF_CORE_DUMP
312#define ELF_EXEC_PAGESIZE 8192
313
314#endif
315
291#ifndef ELF_PLATFORM
292#define ELF_PLATFORM (NULL)
293#endif
294
295#ifndef ELF_HWCAP
296#define ELF_HWCAP 0
297#endif
298

--- 942 unchanged lines hidden ---
316#ifndef ELF_PLATFORM
317#define ELF_PLATFORM (NULL)
318#endif
319
320#ifndef ELF_HWCAP
321#define ELF_HWCAP 0
322#endif
323

--- 942 unchanged lines hidden ---