From: Jan Kratochvil Date: Mon, 24 Oct 2011 14:28:02 +0000 (+0000) Subject: binutils/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7a0b6a5bef4487f8a926ba67bc4c5662a793286;p=binutils-gdb.git binutils/ * dwarf.c (read_and_display_attr_value) : Add CU_OFFSET also for DW_FORM_ref_udata. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 46e6a016a64..30ef0b26a04 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2011-10-24 Jan Kratochvil + + * dwarf.c (read_and_display_attr_value) : Add CU_OFFSET + also for DW_FORM_ref_udata. + 2011-10-24 Nick Clifton * po/ja.po: Updated Japanese translation. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 9d874ca7850..d89a861b556 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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)