diff -uNrp libelf-0.7.0.orig/config.h libelf-0.7.0/config.h --- libelf-0.7.0.orig/config.h 2004-12-01 13:41:45.000000000 +0800 +++ libelf-0.7.0/config.h 2004-12-01 13:42:00.000000000 +0800 @@ -42,6 +42,7 @@ /* Define if you want 64-bit support (and your system supports it) */ /* #undef __LIBELF64 */ +#define __LIBELF64 1 /* Define if you want 64-bit support, and are running IRIX */ /* #undef __LIBELF64_IRIX */ @@ -51,9 +52,11 @@ /* Define to a 64-bit signed integer type if one exists */ /* #undef __libelf_i64_t */ +#define __libelf_i64_t long long /* Define to a 64-bit unsigned integer type if one exists */ /* #undef __libelf_u64_t */ +#define __libelf_u64_t unsigned long long /* Define to a 32-bit signed integer type if one exists */ #define __libelf_i32_t long @@ -74,7 +77,7 @@ #define SIZEOF_LONG 4 /* The number of bytes in a long long. */ -#define SIZEOF_LONG_LONG 0 +#define SIZEOF_LONG_LONG 8 /* The number of bytes in a short. */ #define SIZEOF_SHORT 2 diff -uNrp libelf-0.7.0.orig/lib/Makefile libelf-0.7.0/lib/Makefile --- libelf-0.7.0.orig/lib/Makefile 2004-12-01 13:41:45.000000000 +0800 +++ libelf-0.7.0/lib/Makefile 2004-12-01 13:42:28.000000000 +0800 @@ -111,7 +111,7 @@ OBJS5 = opt.delscn.o # 64-bit sources SRCS64 = 64.xlatetof.c -OBJS64 = +OBJS64 = 64.xlatetof.o SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4) $(SRCS5) $(SRCS64) OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS64)