]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Call read_address_size with file->addr_64 as first argument.
authorMark Wielaard <mjw@redhat.com>
Mon, 19 Jul 2010 08:17:16 +0000 (10:17 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:18 +0000 (14:55 +0200)
* src/dwarflint/check_debug_info.cc (read_info_headers): Pass file->addr_64
  to read_address_size ().
* src/dwarflint/low.c (check_aranges_structural): Likewise.

src/dwarflint/check_debug_info.cc
src/dwarflint/low.c

index 441f6b69cc50fd5a58b0bc00cf5a517e60fa09bd..9ae820f1edd8581c1a8880a5e7103cd61a61c02e 100644 (file)
@@ -206,7 +206,8 @@ namespace
            << pri::lacks_relocation ("abbrev table offset") << std::endl;
 
        /* Address size.  */
-       if (!read_address_size (file, &ctx, &head.address_size, &head.where))
+       if (!read_address_size (file->addr_64, &ctx, &head.address_size,
+                               &head.where))
          throw check_base::failed ();
 
        head.head_size = ctx.ptr - cu_begin; // Length of the headers itself.
index 51ba46859e3fcbcc802b8d007e3e42c0944bd85d..6766d4dedc677e4ac40356a90403eddbbf655a55 100644 (file)
@@ -422,7 +422,7 @@ check_aranges_structural (struct elf_file *file,
 
       /* Address size.  */
       int address_size;
-      if (!read_address_size (file, &sub_ctx, &address_size, &where))
+      if (!read_address_size (file->addr_64, &sub_ctx, &address_size, &where))
        {
          retval = false;
          goto next;