aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d7f5da1..7c258f6 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-11 Cary Coutant <ccoutant@google.com>
+
+ * binutils/dwarf.c (read_and_display_attr_value): Don't warn
+ for zero-length attribute value.
+
2014-02-10 Alan Modra <amodra@gmail.com>
* po/binutils.pot: Regenerate.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 1a62d9f..387504f 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -1468,7 +1468,7 @@ read_and_display_attr_value (unsigned long attribute,
unsigned char * orig_data = data;
unsigned int bytes_read;
- if (data == end)
+ if (data == end && form != DW_FORM_flag_present)
{
warn (_("corrupt attribute\n"));
return data;