This patch fixes all occurences of left-shifting negative constants in C code
which is undefined by the C standard.
binutils/ChangeLog:
* dwarf.c (read_leb128): Fix left shift of negative value.
+2015-11-09 Dominik Vogt <vogt@linux.vnet.ibm.com>
+
+ * dwarf.c (read_leb128): Fix left shift of negative value.
+
2015-11-03 Alan Modra <amodra@gmail.com>
* readelf (process_version_sections): Check DT_VERNEED and
*length_return = num_read;
if (sign && (shift < 8 * sizeof (result)) && (byte & 0x40))
- result |= (dwarf_vma) -1 << shift;
+ result |= -((dwarf_vma) 1 << shift);
return result;
}