readelf: ubsan: shift exponent 32 is too large
authorAlan Modra <amodra@gmail.com>
Sun, 30 Aug 2020 10:57:27 +0000 (20:27 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 30 Aug 2020 11:19:32 +0000 (20:49 +0930)
commit54b8331d0b6b58d6f7256a22e7a9457d64891a43
treecdefbe493ca686e133f7930eac7a026ef066da1c
parent2781f857e6a654521f0decebb809989b72afa2c5
readelf: ubsan: shift exponent 32 is too large

When compiled on a 32-bit host, a temp var is too small for possible
64-bit values to be calculated.

* readelf.c (print_gnu_build_attribute_name): Make "bytes"
unsigned long long.
binutils/ChangeLog
binutils/readelf.c