All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Where is load_elf32()?
@ 2012-01-16  4:41 Li Guohua
  2012-01-16  4:59 ` Max Filippov
  0 siblings, 1 reply; 2+ messages in thread
From: Li Guohua @ 2012-01-16  4:41 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

Hi,

In qemu-1.0:hw/loader.c, load_elf() calls load_elf64() or load_elf32().
But where is the function definition/body of load_elf32()?

And:

$ find /usr/include -name '*' | xargs grep load_elf32
[no result]


Thanks & Regards,
Gary

[-- Attachment #2: Type: text/html, Size: 529 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Where is load_elf32()?
  2012-01-16  4:41 [Qemu-devel] Where is load_elf32()? Li Guohua
@ 2012-01-16  4:59 ` Max Filippov
  0 siblings, 0 replies; 2+ messages in thread
From: Max Filippov @ 2012-01-16  4:59 UTC (permalink / raw)
  To: Li Guohua; +Cc: qemu-devel

> In qemu-1.0:hw/loader.c, load_elf() calls load_elf64() or load_elf32().
> But where is the function definition/body of load_elf32()?

It is in hw/elf_ops.h:190

static int glue(load_elf, SZ)(const char *name, int fd,
                             uint64_t (*translate_fn)(void *, uint64_t),
                             void *translate_opaque,
                             int must_swab, uint64_t *pentry,
                             uint64_t *lowaddr, uint64_t *highaddr,
                             int elf_machine, int clear_lsb)

--
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-16  4:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-16  4:41 [Qemu-devel] Where is load_elf32()? Li Guohua
2012-01-16  4:59 ` Max Filippov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.