[PATCH] lib: Provide MAX and MIN in system.h

2016-10-11 Thread Akihiko Odaki
This change also creates a new header file libeu.h to provide the prototypes for the function of libeu. That hides the definition of function crc32, which can conflict with zlib, from libelf. It also prevents mistakes to refer those functions from a component which doesn't link with libeu, such as

[PATCH] Allow to build for non-ELF target

2016-10-11 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- backends/Makefile.am | 5 - configure.ac | 13 - lib/eu-config.h | 4 libdw/Makefile.am| 5 - libelf/Makefile.am | 5 - 5 files changed, 28 insertions(+), 4 deletions(-) diff --git a/backends/Makefile.am b/backe

[PATCH] libelf: Do not cast pointer to integer in gelf_newphdr

2016-10-11 Thread Akihiko Odaki
unsigned long int is not always capable to have pointer in some cases (LLP64, for example). Signed-off-by: Akihiko Odaki --- libelf/gelf.h | 4 ++-- libelf/gelf_newehdr.c | 6 +++--- libelf/gelf_newphdr.c | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libelf/g

[PATCH] Allow to choose to build shared or static library

2016-10-11 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- backends/Makefile.am | 9 ++--- configure.ac | 11 ++- libasm/Makefile.am | 11 +++ libdw/Makefile.am| 25 ++--- libdwelf/Makefile.am | 6 +- libdwfl/Makefile.am | 9 ++--- libebl/Makefile.am | 2

[PATCH] Allow to disable components

2016-10-11 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- Makefile.am | 27 +-- configure.ac | 107 ++- lib/system.h | 9 - 3 files changed, 110 insertions(+), 33 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2ff444e..7abd95f 100644

[PATCH] lib: Provide MAX and MIN in system.h

2016-10-11 Thread Akihiko Odaki
This change also creates a new header file libeu.h to provide the prototypes for the function of libeu. That hides the definition of function crc32, which can conflict with zlib, from libelf. It also prevents mistakes to refer those functions from a component which doesn't link with libeu, such as

[PATCH] Do not depend on non-POSIX features

2016-10-11 Thread Akihiko Odaki
Signed-off-by: Akihiko Odaki --- configure.ac | 3 +++ lib/fixedsizehash.h | 6 ++ lib/system.h | 9 + libelf/elf_getarsym.c | 8 libelf/elf_strptr.c | 30 ++ libelf/libelfP.h | 4 6 files changed, 52 insertions