summaryrefslogtreecommitdiff
path: root/pkg/elftoolchain/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-06-07 21:00:49 -0700
committerMichael Forney <mforney@mforney.org>2019-06-09 22:43:05 -0700
commit2e6b6a5e8a24555f4d421ca9b166b7ae7cc986cf (patch)
treeaf3b1845f38a03d83f6d5a55f63a988912a57959 /pkg/elftoolchain/patch
parent49f60b7f236dbd4fc4839a1c17632ddafb91c001 (diff)
Add elftoolchain 0.7.1
Diffstat (limited to 'pkg/elftoolchain/patch')
-rw-r--r--pkg/elftoolchain/patch/0001-Ensure-that-the-value-of-a-32-bit-parameter-passed.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/elftoolchain/patch/0001-Ensure-that-the-value-of-a-32-bit-parameter-passed.patch b/pkg/elftoolchain/patch/0001-Ensure-that-the-value-of-a-32-bit-parameter-passed.patch
new file mode 100644
index 00000000..b4df82fc
--- /dev/null
+++ b/pkg/elftoolchain/patch/0001-Ensure-that-the-value-of-a-32-bit-parameter-passed.patch
@@ -0,0 +1,30 @@
+From 6d5954e185dac4e24dd1936e53f09b6b3c1122c8 Mon Sep 17 00:00:00 2001
+From: jkoshy <jkoshy@95820547-d848-0410-985e-9ae8fe0fa350>
+Date: Sun, 9 Jun 2019 17:01:37 +0000
+Subject: [PATCH] Ensure that the value of a 32-bit parameter passed to the
+ ELF64_R_INFO() macro does not get lost.
+
+Submitted by: Michael Forney on -developers
+
+git-svn-id: https://svn.code.sf.net/p/elftoolchain/code/trunk@3742 95820547-d848-0410-985e-9ae8fe0fa350
+---
+ common/elfdefinitions.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/common/elfdefinitions.h b/common/elfdefinitions.h
+index 7f8d9043..dae45583 100644
+--- a/common/elfdefinitions.h
++++ b/common/elfdefinitions.h
+@@ -2606,7 +2606,8 @@ typedef struct {
+
+ #define ELF64_R_SYM(I) ((I) >> 32)
+ #define ELF64_R_TYPE(I) ((I) & 0xFFFFFFFFUL)
+-#define ELF64_R_INFO(S,T) (((S) << 32) + ((T) & 0xFFFFFFFFUL))
++#define ELF64_R_INFO(S,T) \
++ (((Elf64_Xword) (S) << 32) + ((T) & 0xFFFFFFFFUL))
+
+ /*
+ * Symbol versioning structures.
+--
+2.20.1
+