diff options
Diffstat (limited to 'pkg/elftoolchain/patch')
| -rw-r--r-- | pkg/elftoolchain/patch/0001-Ensure-that-the-value-of-a-32-bit-parameter-passed.patch | 30 |
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 + |
