ia64/xen-unstable

view config/x86_64.mk @ 13631:db3d03dfe92f

add libelf: an ELF binary parser library.

This patch adds a library with a small collection of helper functions
to parse and load elf binaries. The library handles endianess and
elfsize at runtime.

The patch also shuffles around the include files a bit. Now there is
*one* include file holding all the elf structures
(xen/include/public/elfstructs.h) which is included by everyone who
needs them.

It's dead code with this patch only, putting the code into use happens
in followup patches.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
---
tools/libxc/xc_elf.h | 525 -----------------------------------
xen/arch/x86/boot/mkelf32.c | 2
xen/common/Makefile | 2
xen/common/libelf/Makefile | 4
xen/common/libelf/README | 1
xen/common/libelf/libelf-dominfo.c | 420 ++++++++++++++++++++++++++++
xen/common/libelf/libelf-loader.c | 156 ++++++++++
xen/common/libelf/libelf-private.h | 51 +++
xen/common/libelf/libelf-relocate.c | 345 +++++++++++++++++++++++
xen/common/libelf/libelf-tools.c | 225 +++++++++++++++
xen/include/public/elfstructs.h | 527 ++++++++++++++++++++++++++++++++++++
xen/include/public/libelf.h | 238 ++++++++++++++++
xen/include/xen/elf.h | 490 ---------------------------------
13 files changed, 1972 insertions(+), 1014 deletions(-)
author Emmanuel Ackaouy <ack@xensource.com>
date Thu Jan 25 22:16:52 2007 +0000 (2007-01-25)
parents 7c5eea5feebd
children 6ed9b42d1ec4
line source
1 CONFIG_X86 := y
2 CONFIG_X86_64 := y
3 CONFIG_X86_$(XEN_OS) := y
5 CONFIG_COMPAT := y
6 CONFIG_HVM := y
7 CONFIG_MIGRATE := y
8 CONFIG_XCUTILS := y
9 CONFIG_IOEMU := y
11 CFLAGS += -m64
12 LIBDIR = $(LIB64DIR)
14 # Use only if calling $(LD) directly.
15 ifeq ($(XEN_OS),OpenBSD)
16 LDFLAGS_DIRECT += -melf_x86_64_obsd
17 else
18 LDFLAGS_DIRECT += -melf_x86_64
19 endif