binutils/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 24 Oct 2011 14:28:02 +0000 (14:28 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 24 Oct 2011 14:28:02 +0000 (14:28 +0000)
* dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET
also for DW_FORM_ref_udata.

binutils/ChangeLog
binutils/dwarf.c

index 46e6a016a64f782942ccd13eb74042dc1345180d..30ef0b26a04cf99d2a9852fa86e0994b72189871 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET
+       also for DW_FORM_ref_udata.
+
 2011-10-24  Nick Clifton  <nickc@redhat.com>
 
        * po/ja.po: Updated Japanese translation.
index 9d874ca7850c8b7002e05abf105a17efd0fcb819..d89a861b55651b9304c9e72cf7551130604f5f91 100644 (file)
@@ -1769,7 +1769,8 @@ read_and_display_attr_value (unsigned long attribute,
 
        if (form == DW_FORM_ref1
            || form == DW_FORM_ref2
-           || form == DW_FORM_ref4)
+           || form == DW_FORM_ref4
+           || form == DW_FORM_ref_udata)
          uvalue += cu_offset;
 
        if (uvalue >= section->size)