Revision fdf9b3e8 linux-user/elfload.c

b/linux-user/elfload.c
274 274

  
275 275
#endif /* TARGET_MIPS */
276 276

  
277
#ifdef TARGET_SH4
278

  
279
#define ELF_START_MMAP 0x80000000
280

  
281
#define elf_check_arch(x) ( (x) == EM_SH )
282

  
283
#define ELF_CLASS ELFCLASS32
284
#define ELF_DATA  ELFDATA2LSB
285
#define ELF_ARCH  EM_SH
286

  
287
#define ELF_PLAT_INIT(_r) /* XXXXX */
288

  
289
static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
290
{
291
  /* Check other registers XXXXX */
292
  regs->pc = infop->entry;
293
  regs->regs[15] = infop->start_stack - 16 * 4;
294
}
295

  
296
#define USE_ELF_CORE_DUMP
297
#define ELF_EXEC_PAGESIZE        4096
298

  
299
#endif
300

  
277 301
#ifndef ELF_PLATFORM
278 302
#define ELF_PLATFORM (NULL)
279 303
#endif

Also available in: Unified diff