]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Width of DW_LNE_set_address depends on 64-bitness of target
authorPetr Machata <pmachata@redhat.com>
Mon, 23 Mar 2009 11:54:12 +0000 (12:54 +0100)
committerPetr Machata <pmachata@redhat.com>
Mon, 23 Mar 2009 11:49:55 +0000 (12:49 +0100)
src/dwarflint.c

index b24982be4c56cdc1a7b559a01d4e13002e855d38..f5fd55c26dd328b277e421f55f83cf15f3c5a968 100644 (file)
@@ -4979,7 +4979,7 @@ check_line_structural (struct section_data *data,
                    {
                      uint64_t ctx_offset = read_ctx_get_offset (&sub_ctx);
                      uint64_t addr;
-                     if (!read_ctx_read_offset (&sub_ctx, dwarf_64, &addr))
+                     if (!read_ctx_read_offset (&sub_ctx, data->file->addr_64, &addr))
                        {
                          wr_error (&where, ": can't read operand of DW_LNE_set_address.\n");
                          goto skip;