• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisionccaf6a01bae457aba3a3f6baf1239bb55bc189a4 (tree)
l'heure2018-08-04 06:38:20
AuteurRoland McGrath <mcgrathr@goog...>
CommiterRoland McGrath

Message de Log

[gold] Fix integer narrowing in switch

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.

Change Summary

Modification

--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,9 @@
1+2018-08-03 Roland McGrath <mcgrathr@google.com>
2+
3+ * target.h (Sized_target::record_gnu_property): Use unsigned int
4+ for second argument.
5+ * x86_64.cc (Target_x86_64<size>::record_gnu_property): Likewise.
6+
17 2018-07-30 Nick Clifton <nickc@redhat.com>
28
39 * layout.cc (section_name_mapping): Add an entry for
--- a/gold/target.h
+++ b/gold/target.h
@@ -1147,7 +1147,8 @@ class Sized_target : public Target
11471147 // Record a target-specific program property in the .note.gnu.property
11481148 // section.
11491149 virtual void
1150- record_gnu_property(int, int, size_t, const unsigned char*, const Object*)
1150+ record_gnu_property(int, unsigned int, size_t, const unsigned char*,
1151+ const Object*)
11511152 { }
11521153
11531154 // Merge the target-specific program properties from the current object.
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -1307,7 +1307,8 @@ class Target_x86_64 : public Sized_target<size, false>
13071307 // Record a target-specific program property in the .note.gnu.property
13081308 // section.
13091309 void
1310- record_gnu_property(int, int, size_t, const unsigned char*, const Object*);
1310+ record_gnu_property(int, unsigned int, size_t, const unsigned char*,
1311+ const Object*);
13111312
13121313 // Merge the target-specific program properties from the current object.
13131314 void
@@ -1579,7 +1580,7 @@ Target_x86_64<size>::rela_irelative_section(Layout* layout)
15791580 template<int size>
15801581 void
15811582 Target_x86_64<size>::record_gnu_property(
1582- int, int pr_type,
1583+ int, unsigned int pr_type,
15831584 size_t pr_datasz, const unsigned char* pr_data,
15841585 const Object* object)
15851586 {