diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ca9028688f..9872504871 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2020-08-30 Alan Modra + + * readelf.c (print_gnu_build_attribute_name): Use unsigned long + long for "bytes". + 2020-08-28 Nick Clifton PR 26548 diff --git a/binutils/readelf.c b/binutils/readelf.c index f02848e468..94aa876b5a 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -19662,7 +19662,7 @@ print_gnu_build_attribute_name (Elf_Internal_Note * pnote) while (bytes --) { - unsigned long byte = (* name ++) & 0xff; + unsigned long long byte = *name++ & 0xff; val |= byte << shift; shift += 8;