summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch')
-rw-r--r--meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch60
1 files changed, 30 insertions, 30 deletions
diff --git a/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch b/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch
index 17b98a7964..c949e96533 100644
--- a/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch
+++ b/meta/recipes-devtools/elfutils/files/debian/0003-Add-mips-n64-relocation-format-hack.patch
@@ -1,7 +1,7 @@
1From bce44aece915698a224a8aefa66784b27455675b Mon Sep 17 00:00:00 2001 1From 59d4b8c48e5040af7e02b34eb26ea602ec82a38e Mon Sep 17 00:00:00 2001
2From: James Cowgill <james410@cowgill.org.uk> 2From: James Cowgill <james410@cowgill.org.uk>
3Date: Mon, 5 Jan 2015 15:17:02 +0000 3Date: Mon, 5 Jan 2015 15:17:02 +0000
4Subject: [PATCH] Add mips n64 relocation format hack 4Subject: [PATCH 3/3] Add mips n64 relocation format hack
5 5
6MIPSEL N64 ELF files use a slightly different format for storing relocation 6MIPSEL N64 ELF files use a slightly different format for storing relocation
7entries which is incompatible with the normal R_SYM / R_INFO macros. 7entries which is incompatible with the normal R_SYM / R_INFO macros.
@@ -12,9 +12,9 @@ This patch also ensures that strip.c sets the correct value of e_machine
12before manipulating relocations so that these changes take effect. 12before manipulating relocations so that these changes take effect.
13 13
14Signed-off-by: James Cowgill <james410@cowgill.org.uk> 14Signed-off-by: James Cowgill <james410@cowgill.org.uk>
15
15Upstream-Status: Pending [from debian] 16Upstream-Status: Pending [from debian]
16Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 17Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
17
18--- 18---
19 libelf/gelf_getrel.c | 25 +++++++++++++++++++++++-- 19 libelf/gelf_getrel.c | 25 +++++++++++++++++++++++--
20 libelf/gelf_getrela.c | 25 +++++++++++++++++++++++-- 20 libelf/gelf_getrela.c | 25 +++++++++++++++++++++++--
@@ -23,10 +23,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
23 src/strip.c | 17 +++++++++++++++++ 23 src/strip.c | 17 +++++++++++++++++
24 5 files changed, 101 insertions(+), 6 deletions(-) 24 5 files changed, 101 insertions(+), 6 deletions(-)
25 25
26diff --git a/libelf/gelf_getrel.c b/libelf/gelf_getrel.c 26Index: elfutils-0.175/libelf/gelf_getrel.c
27index 309e3d3..2a81a97 100644 27===================================================================
28--- a/libelf/gelf_getrel.c 28--- elfutils-0.175.orig/libelf/gelf_getrel.c
29+++ b/libelf/gelf_getrel.c 29+++ elfutils-0.175/libelf/gelf_getrel.c
30@@ -36,6 +36,7 @@ 30@@ -36,6 +36,7 @@
31 31
32 #include "libelfP.h" 32 #include "libelfP.h"
@@ -35,7 +35,7 @@ index 309e3d3..2a81a97 100644
35 35
36 GElf_Rel * 36 GElf_Rel *
37 gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst) 37 gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst)
38@@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst) 38@@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GE
39 result = NULL; 39 result = NULL;
40 } 40 }
41 else 41 else
@@ -66,10 +66,10 @@ index 309e3d3..2a81a97 100644
66 } 66 }
67 67
68 rwlock_unlock (scn->elf->lock); 68 rwlock_unlock (scn->elf->lock);
69diff --git a/libelf/gelf_getrela.c b/libelf/gelf_getrela.c 69Index: elfutils-0.175/libelf/gelf_getrela.c
70index d695f65..1f42a80 100644 70===================================================================
71--- a/libelf/gelf_getrela.c 71--- elfutils-0.175.orig/libelf/gelf_getrela.c
72+++ b/libelf/gelf_getrela.c 72+++ elfutils-0.175/libelf/gelf_getrela.c
73@@ -36,6 +36,7 @@ 73@@ -36,6 +36,7 @@
74 74
75 #include "libelfP.h" 75 #include "libelfP.h"
@@ -78,7 +78,7 @@ index d695f65..1f42a80 100644
78 78
79 GElf_Rela * 79 GElf_Rela *
80 gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst) 80 gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst)
81@@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst) 81@@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, G
82 result = NULL; 82 result = NULL;
83 } 83 }
84 else 84 else
@@ -109,10 +109,10 @@ index d695f65..1f42a80 100644
109 } 109 }
110 110
111 rwlock_unlock (scn->elf->lock); 111 rwlock_unlock (scn->elf->lock);
112diff --git a/libelf/gelf_update_rel.c b/libelf/gelf_update_rel.c 112Index: elfutils-0.175/libelf/gelf_update_rel.c
113index 14f62e9..9095556 100644 113===================================================================
114--- a/libelf/gelf_update_rel.c 114--- elfutils-0.175.orig/libelf/gelf_update_rel.c
115+++ b/libelf/gelf_update_rel.c 115+++ elfutils-0.175/libelf/gelf_update_rel.c
116@@ -36,6 +36,7 @@ 116@@ -36,6 +36,7 @@
117 117
118 #include "libelfP.h" 118 #include "libelfP.h"
@@ -121,7 +121,7 @@ index 14f62e9..9095556 100644
121 121
122 int 122 int
123 gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) 123 gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
124@@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) 124@@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx,
125 } 125 }
126 else 126 else
127 { 127 {
@@ -131,7 +131,7 @@ index 14f62e9..9095556 100644
131 /* Check whether we have to resize the data buffer. */ 131 /* Check whether we have to resize the data buffer. */
132 if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d)) 132 if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d))
133 { 133 {
134@@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src) 134@@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx,
135 goto out; 135 goto out;
136 } 136 }
137 137
@@ -154,10 +154,10 @@ index 14f62e9..9095556 100644
154 } 154 }
155 155
156 result = 1; 156 result = 1;
157diff --git a/libelf/gelf_update_rela.c b/libelf/gelf_update_rela.c 157Index: elfutils-0.175/libelf/gelf_update_rela.c
158index 8825270..4caa85f 100644 158===================================================================
159--- a/libelf/gelf_update_rela.c 159--- elfutils-0.175.orig/libelf/gelf_update_rela.c
160+++ b/libelf/gelf_update_rela.c 160+++ elfutils-0.175/libelf/gelf_update_rela.c
161@@ -36,6 +36,7 @@ 161@@ -36,6 +36,7 @@
162 162
163 #include "libelfP.h" 163 #include "libelfP.h"
@@ -166,7 +166,7 @@ index 8825270..4caa85f 100644
166 166
167 int 167 int
168 gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) 168 gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
169@@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) 169@@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx
170 } 170 }
171 else 171 else
172 { 172 {
@@ -176,7 +176,7 @@ index 8825270..4caa85f 100644
176 /* Check whether we have to resize the data buffer. */ 176 /* Check whether we have to resize the data buffer. */
177 if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d)) 177 if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d))
178 { 178 {
179@@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src) 179@@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx
180 goto out; 180 goto out;
181 } 181 }
182 182
@@ -199,11 +199,11 @@ index 8825270..4caa85f 100644
199 } 199 }
200 200
201 result = 1; 201 result = 1;
202diff --git a/src/strip.c b/src/strip.c 202Index: elfutils-0.175/src/strip.c
203index a73009d..75bd7ba 100644 203===================================================================
204--- a/src/strip.c 204--- elfutils-0.175.orig/src/strip.c
205+++ b/src/strip.c 205+++ elfutils-0.175/src/strip.c
206@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, 206@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char
207 goto fail; 207 goto fail;
208 } 208 }
209 209