aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2018-08-06 13:36:42 -0700
committerCary Coutant <ccoutant@gmail.com>2018-08-06 13:51:27 -0700
commitdbf924a63a80f7044f491a09c0df6fe51a07e05e (patch)
tree68bc6e822fedc9e81a7f98b5e63a9d4d7032603e /gold
parent29d5746fed0c1e9a77371311e6555b0abd5b56b2 (diff)
downloadgdb-dbf924a63a80f7044f491a09c0df6fe51a07e05e.zip
gdb-dbf924a63a80f7044f491a09c0df6fe51a07e05e.tar.gz
gdb-dbf924a63a80f7044f491a09c0df6fe51a07e05e.tar.bz2
Fix type checking errors.
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.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog6
-rw-r--r--gold/target.h3
-rw-r--r--gold/x86_64.cc5
3 files changed, 11 insertions, 3 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 18af5e6..9ab8c78 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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-18 Nick Clifton <nickc@redhat.com>
2.31.1 Release point.
diff --git a/gold/target.h b/gold/target.h
index bb31206..bbc8739 100644
--- a/gold/target.h
+++ b/gold/target.h
@@ -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.
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index 27f273d..9d742f6 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -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)
{