aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2015-10-28 18:41:35 -0500
committerMark Hatle <mark.hatle@windriver.com>2015-10-28 18:50:41 -0500
commit84cdae510875146987340ea0adaf38b43cf8c7eb (patch)
tree0b53be659526db309cb6ecaf7b23cd825632ecc6
parent21954bed3fc17fdfcf8d9a51ea4d4814cdecfac6 (diff)
downloadprelink-cross-84cdae510875146987340ea0adaf38b43cf8c7eb.tar.gz
prelink-cross-84cdae510875146987340ea0adaf38b43cf8c7eb.tar.bz2
prelink-cross-84cdae510875146987340ea0adaf38b43cf8c7eb.zip
src/get.c: Sync the rtld and prelinker to the same define
No actual change in the defined value occurs, but the format on both sides of the interface (rtld and prelinker) are now using the same define. 2015-10-28 Mark Hatle <mark.hatle@windriver.com> * get.c: Sync rtld/prelink type_class values Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r--ChangeLog3
-rw-r--r--src/get.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 5079a1d..7dfb292 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2015-10-28 Mark Hatle <mark.hatle@windriver.com>
+ * get.c: Sync rtld/prelink type_class values
+
2015-10-22 Mark Hatle <mark.hatle@windriver.com>
* Upstream project appears to have been abandoned
* Update the project to remove the SVN like 'trunk' dir
diff --git a/src/get.c b/src/get.c
index d10efcc..0d37bca 100644
--- a/src/get.c
+++ b/src/get.c
@@ -278,9 +278,9 @@ prelink_record_relocations (struct prelink_info *info, FILE *f,
reloc_class = dso->arch->reloc_class (reloc_class);
else
{
- if (reloc_class & 8)
+ if (reloc_class & RTYPE_CLASS_VALID)
{
- reloc_class = ((reloc_class & ~8)
+ reloc_class = ((reloc_class & ~RTYPE_CLASS_VALID)
| dso->arch->rtype_class_valid);
ifunc = 1;
}
@@ -483,9 +483,9 @@ prelink_record_relocations (struct prelink_info *info, FILE *f,
reloc_class = dso->arch->reloc_class (reloc_class);
else
{
- if (reloc_class & 8)
+ if (reloc_class & RTYPE_CLASS_VALID)
{
- reloc_class = ((reloc_class & ~8)
+ reloc_class = ((reloc_class & ~RTYPE_CLASS_VALID)
| dso->arch->rtype_class_valid);
ifunc = 1;
}