]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix type checking errors.
authorCary Coutant <ccoutant@gmail.com>
Mon, 6 Aug 2018 20:36:42 +0000 (13:36 -0700)
committerCary Coutant <ccoutant@gmail.com>
Mon, 6 Aug 2018 20:36:42 +0000 (13:36 -0700)
gold/
* target.h (Sized_target::record_gnu_property): Change first two
parameters to unsigned int.
* x86_64.cc (Target_x86_64::record_gnu_property): Likewise.

gold/ChangeLog
gold/target.h
gold/x86_64.cc

index d5cc02b14bdbed2df8c0525603bc33e29c738ef5..befa832b1192fb4033ac88879e48edfdd31b7efd 100644 (file)
@@ -1,3 +1,9 @@
+2018-08-06  Cary Coutant  <ccoutant@gmail.com>
+
+       * target.h (Sized_target::record_gnu_property): Change first two
+       parameters to unsigned int.
+       * x86_64.cc (Target_x86_64::record_gnu_property): Likewise.
+
 2018-07-30  Nick Clifton  <nickc@redhat.com>
 
        * layout.cc (section_name_mapping): Add an entry for
index bb312067b5f2a621ab8abaa4de819b0e9bc20c33..bbc87396f62f2d795178a3b9e6e0c5ea2ac69f89 100644 (file)
@@ -1147,7 +1147,8 @@ class Sized_target : public Target
   // Record a target-specific program property in the .note.gnu.property
   // section.
   virtual void
-  record_gnu_property(int, int, size_t, const unsigned char*, const Object*)
+  record_gnu_property(unsigned int, unsigned int, size_t,
+                     const unsigned char*, const Object*)
   { }
 
   // Merge the target-specific program properties from the current object.
index 27f273d64b30b49e4fa16e99ab4f1a1a43c38ae5..9d742f6f1320cf0b249eddb08a4987fe7fb7e4c6 100644 (file)
@@ -1307,7 +1307,8 @@ class Target_x86_64 : public Sized_target<size, false>
   // Record a target-specific program property in the .note.gnu.property
   // section.
   void
-  record_gnu_property(int, int, size_t, const unsigned char*, const Object*);
+  record_gnu_property(unsigned int, unsigned int, size_t,
+                     const unsigned char*, const Object*);
 
   // Merge the target-specific program properties from the current object.
   void
@@ -1579,7 +1580,7 @@ Target_x86_64<size>::rela_irelative_section(Layout* layout)
 template<int size>
 void
 Target_x86_64<size>::record_gnu_property(
-    int, int pr_type,
+    unsigned int, unsigned int pr_type,
     size_t pr_datasz, const unsigned char* pr_data,
     const Object* object)
 {