diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-10-25 15:06:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-10-25 15:06:39 -0700 |
commit | 256878f318c60cbcc145fc95936035e0f7ff1af6 (patch) | |
tree | 2f59866e6a3734963674eb9c858604e18f489d02 /binutils/elfedit.c | |
parent | 1834d45f0ff231bf74de3b0305949cf991470a35 (diff) | |
download | gdb-256878f318c60cbcc145fc95936035e0f7ff1af6.zip gdb-256878f318c60cbcc145fc95936035e0f7ff1af6.tar.gz gdb-256878f318c60cbcc145fc95936035e0f7ff1af6.tar.bz2 |
elfedit.c: Replace BYTE_PUT with byte_put
Since BYTE_PUT is defined as
#define BYTE_PUT(field, val) byte_put (field, val, sizeof (field))
use byte_put, instead of BYTE_PUT, to put 4-byte bitmask at ptr with
"byte_put (ptr, bitmask, 4)", instead of "BYTE_PUT (ptr, bitmask)", to
work with "unsigned char *ptr".
* elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
Diffstat (limited to 'binutils/elfedit.c')
-rw-r--r-- | binutils/elfedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/elfedit.c b/binutils/elfedit.c index ea261de..5c0d711 100644 --- a/binutils/elfedit.c +++ b/binutils/elfedit.c @@ -225,7 +225,7 @@ update_gnu_property (const char *file_name, FILE *file) if (disable_x86_features) bitmask &= ~disable_x86_features; if (old_bitmask != bitmask) - BYTE_PUT (ptr, bitmask); + byte_put (ptr, bitmask, 4); goto out; } |