mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Fix an undefined 32-bit right shift by replacing it with two 16-bit right shifts.
PR binutils/17765 * elflink.c (put_value): Like previous delta, but for the 32-bit case.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2015-03-06 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR binutils/17765
|
||||||
|
* elflink.c (put_value): Like previous delta, but for the 32-bit
|
||||||
|
case.
|
||||||
|
|
||||||
2015-03-05 Nick Clifton <nickc@redhat.com>
|
2015-03-05 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutils/17765
|
PR binutils/17765
|
||||||
|
@ -7807,7 +7807,9 @@ put_value (bfd_vma size,
|
|||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
bfd_put_32 (input_bfd, x, location);
|
bfd_put_32 (input_bfd, x, location);
|
||||||
x >>= 32;
|
/* Computed this way because x >>= 32 is undefined if x is a 32-bit value. */
|
||||||
|
x >>= 16;
|
||||||
|
x >>= 16;
|
||||||
break;
|
break;
|
||||||
#ifdef BFD64
|
#ifdef BFD64
|
||||||
case 8:
|
case 8:
|
||||||
|
Reference in New Issue
Block a user