]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gold] Fix integer narrowing in switch users/roland/gold-narrowing-switch
authorRoland McGrath <mcgrathr@google.com>
Fri, 3 Aug 2018 21:38:20 +0000 (14:38 -0700)
committerRoland McGrath <mcgrathr@google.com>
Fri, 3 Aug 2018 21:38:20 +0000 (14:38 -0700)
gold/
* target.h (Sized_target::record_gnu_property): Use unsigned int
for second argument.
* x86_64.cc (Target_x86_64<size>::record_gnu_property): Likewise.

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

index d5cc02b14bdbed2df8c0525603bc33e29c738ef5..b6ccbdd74c63fcaf1976d7eb7a249dd4ad9a2ab9 100644 (file)
@@ -1,3 +1,9 @@
+2018-08-03  Roland McGrath  <mcgrathr@google.com>
+
+       * target.h (Sized_target::record_gnu_property): Use unsigned int
+       for second argument.
+       * x86_64.cc (Target_x86_64<size>::record_gnu_property): Likewise.
+
 2018-07-30  Nick Clifton  <nickc@redhat.com>
 
        * layout.cc (section_name_mapping): Add an entry for
index bb312067b5f2a621ab8abaa4de819b0e9bc20c33..00a1f988e7ada5d39747c68c089580cc73242c23 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(int, unsigned int, size_t, const unsigned char*,
+                      const Object*)
   { }
 
   // Merge the target-specific program properties from the current object.
index 27f273d64b30b49e4fa16e99ab4f1a1a43c38ae5..36c2c27f5b62dac0f92a525db677a3b0069a155c 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(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,
+    int, unsigned int pr_type,
     size_t pr_datasz, const unsigned char* pr_data,
     const Object* object)
 {