mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 23:23:09 +00:00
[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.
This commit is contained in:
@@ -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>
|
2018-07-30 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* layout.cc (section_name_mapping): Add an entry for
|
* layout.cc (section_name_mapping): Add an entry for
|
||||||
|
|||||||
@@ -1147,7 +1147,8 @@ class Sized_target : public Target
|
|||||||
// Record a target-specific program property in the .note.gnu.property
|
// Record a target-specific program property in the .note.gnu.property
|
||||||
// section.
|
// section.
|
||||||
virtual void
|
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.
|
// Merge the target-specific program properties from the current object.
|
||||||
|
|||||||
@@ -1307,7 +1307,8 @@ class Target_x86_64 : public Sized_target<size, false>
|
|||||||
// Record a target-specific program property in the .note.gnu.property
|
// Record a target-specific program property in the .note.gnu.property
|
||||||
// section.
|
// section.
|
||||||
void
|
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.
|
// Merge the target-specific program properties from the current object.
|
||||||
void
|
void
|
||||||
@@ -1579,7 +1580,7 @@ Target_x86_64<size>::rela_irelative_section(Layout* layout)
|
|||||||
template<int size>
|
template<int size>
|
||||||
void
|
void
|
||||||
Target_x86_64<size>::record_gnu_property(
|
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,
|
size_t pr_datasz, const unsigned char* pr_data,
|
||||||
const Object* object)
|
const Object* object)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user