elfedit.c: Replace BYTE_PUT with byte_put
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 25 Oct 2019 22:06:39 +0000 (15:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 25 Oct 2019 22:06:39 +0000 (15:06 -0700)
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.

binutils/ChangeLog
binutils/elfedit.c

index 224ebeb04efb78dab56f29166cde33fd4a7f0603..6c5143d30e6f0ec83476960fc79b0f12334c8b2b 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
+
 2019-10-25  Nick Clifton  <nickc@redhat.com>
 
        * objcopy.c (struct merged_note_section): New structure.  Used to
index ea261de4244183fb6291679d996c745798bdc29a..5c0d711e8b17eb80cb06d381d361e998a63b75a3 100644 (file)
@@ -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;
                      }
 
This page took 0.028629 seconds and 4 git commands to generate.