]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 12 Nov 2012 16:25:13 +0000 (17:25 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 12 Nov 2012 16:25:13 +0000 (17:25 +0100)
boot [deleted file]
configure.ac
libdw/dwarf_begin_elf.c
src/readelf.c

diff --git a/boot b/boot
deleted file mode 100644 (file)
index c882029..0000000
--- a/boot
+++ /dev/null
@@ -1,11 +0,0 @@
-#! /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
index 67d3913475417662ac93493a5ebf8b5997d45a97..01c551049bad447c20a745aa5462e86403937961 100644 (file)
@@ -23,7 +23,7 @@ AC_CONFIG_AUX_DIR([config])
 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])
index 8d1e7a08d0f69716cbbedc112d797690c8d89c99..a9c826ced7cc05e60adc44617f484d3539b993f3 100644 (file)
 #if USE_ZLIB
 # include <endian.h>
 # define crc32         loser_crc32
-# ifndef be64toh
-#  include <byteswap.h>
-#  if __BYTE_ORDER == __LITTLE_ENDIAN
-#   define be64toh(x) bswap_64 (x)
-#  else
-#   define be64toh(x) (x)
-#  endif
-# endif
 # include <zlib.h>
 # undef crc32
 #endif
index 14b0acb0fe758d4191548df42afa255dc171d526..fa2d75ccc5edae6d8104510d1bdb147551702293 100644 (file)
@@ -3949,11 +3949,10 @@ struct listptr
 #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;
 
@@ -4034,11 +4033,8 @@ static void
 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
@@ -4247,7 +4243,7 @@ print_debug_ranges_section (Dwfl_Module *dwflmod,
                                      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;
@@ -6030,7 +6026,7 @@ print_debug_loc_section (Dwfl_Module *dwflmod,
                                      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;