GNU Binutils with patches for OS216
Révision | ccaf6a01bae457aba3a3f6baf1239bb55bc189a4 (tree) |
---|---|
l'heure | 2018-08-04 06:38:20 |
Auteur | Roland McGrath <mcgrathr@goog...> |
Commiter | Roland McGrath |
[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.
@@ -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 | + | |
1 | 7 | 2018-07-30 Nick Clifton <nickc@redhat.com> |
2 | 8 | |
3 | 9 | * layout.cc (section_name_mapping): Add an entry for |
@@ -1147,7 +1147,8 @@ class Sized_target : public Target | ||
1147 | 1147 | // Record a target-specific program property in the .note.gnu.property |
1148 | 1148 | // section. |
1149 | 1149 | 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*) | |
1151 | 1152 | { } |
1152 | 1153 | |
1153 | 1154 | // Merge the target-specific program properties from the current object. |
@@ -1307,7 +1307,8 @@ class Target_x86_64 : public Sized_target<size, false> | ||
1307 | 1307 | // Record a target-specific program property in the .note.gnu.property |
1308 | 1308 | // section. |
1309 | 1309 | 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*); | |
1311 | 1312 | |
1312 | 1313 | // Merge the target-specific program properties from the current object. |
1313 | 1314 | void |
@@ -1579,7 +1580,7 @@ Target_x86_64<size>::rela_irelative_section(Layout* layout) | ||
1579 | 1580 | template<int size> |
1580 | 1581 | void |
1581 | 1582 | Target_x86_64<size>::record_gnu_property( |
1582 | - int, int pr_type, | |
1583 | + int, unsigned int pr_type, | |
1583 | 1584 | size_t pr_datasz, const unsigned char* pr_data, |
1584 | 1585 | const Object* object) |
1585 | 1586 | { |