+++ /dev/null
-#! /bin/bash
-if ! test -f ./backends/libebl_x86_64.so;then
- echo ERROR: ./backends/libebl_x86_64.so
-else
- test -d lib
- mkdir -p lib64
- test -h lib/elfutils || ln -s ../backends lib/elfutils
- test -h lib64/elfutils || ln -s ../backends lib64/elfutils
- export LD_LIBRARY_PATH=$PWD/backends:$PWD/libdw:$PWD/libelf:$PWD/libasm:$LD_LIBRARY_PATH
-fi
-echo OK
AC_CONFIG_FILES([config/Makefile])
AC_COPYRIGHT([Copyright (C) 1996-2012 Red Hat, Inc.])
-dnl AC_PREREQ(2.63) dnl Minimum Autoconf version required.
+AC_PREREQ(2.63) dnl Minimum Autoconf version required.
dnl We use GNU make extensions; automake 1.10 defaults to -Wportability.
AM_INIT_AUTOMAKE([gnits 1.8 -Wno-portability dist-bzip2 no-dist-gzip])
#define listptr_offset_size(p) ((p)->dwarf64 ? 8 : 4)
#define listptr_address_size(p) ((p)->addr64 ? 8 : 4)
-static const char *listptr_name;
static int
-compare_listptr (const void *a, const void *b)
+compare_listptr (const void *a, const void *b, void *arg)
{
- const char *const name = listptr_name;
+ const char *name = arg;
struct listptr *p1 = (void *) a;
struct listptr *p2 = (void *) b;
sort_listptr (struct listptr_table *table, const char *name)
{
if (table->n > 0)
- {
- listptr_name = name;
- qsort (table->table, table->n, sizeof table->table[0],
- &compare_listptr);
- }
+ qsort_r (table->table, table->n, sizeof table->table[0],
+ &compare_listptr, (void *) name);
}
static bool
offset, &readp, endp))
continue;
- if (unlikely (data->d_size - offset < (size_t) address_size * 2))
+ if (unlikely (data->d_size - offset < address_size * 2))
{
printf (gettext (" [%6tx] <INVALID DATA>\n"), offset);
break;
offset, &readp, endp))
continue;
- if (unlikely (data->d_size - offset < (size_t) address_size * 2))
+ if (unlikely (data->d_size - offset < address_size * 2))
{
printf (gettext (" [%6tx] <INVALID DATA>\n"), offset);
break;