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.patch41
1 files changed, 20 insertions, 21 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 d27ce6dc9c..b196802bc1 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,6 +1,3 @@
1Upstream-Status: Pending [from debian]
2Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
3
4From 59d4b8c48e5040af7e02b34eb26ea602ec82a38e Mon Sep 17 00:00:00 2001 1From 59d4b8c48e5040af7e02b34eb26ea602ec82a38e Mon Sep 17 00:00:00 2001
5From: James Cowgill <james410@cowgill.org.uk> 2From: James Cowgill <james410@cowgill.org.uk>
6Date: Mon, 5 Jan 2015 15:17:02 +0000 3Date: Mon, 5 Jan 2015 15:17:02 +0000
@@ -15,6 +12,8 @@ This patch also ensures that strip.c sets the correct value of e_machine
15before manipulating relocations so that these changes take effect. 12before manipulating relocations so that these changes take effect.
16 13
17Signed-off-by: James Cowgill <james410@cowgill.org.uk> 14Signed-off-by: James Cowgill <james410@cowgill.org.uk>
15Upstream-Status: Pending [from debian]
16Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
18--- 17---
19 libelf/gelf_getrel.c | 25 +++++++++++++++++++++++-- 18 libelf/gelf_getrel.c | 25 +++++++++++++++++++++++--
20 libelf/gelf_getrela.c | 25 +++++++++++++++++++++++-- 19 libelf/gelf_getrela.c | 25 +++++++++++++++++++++++--
@@ -23,10 +22,10 @@ Signed-off-by: James Cowgill <james410@cowgill.org.uk>
23 src/strip.c | 17 +++++++++++++++++ 22 src/strip.c | 17 +++++++++++++++++
24 5 files changed, 101 insertions(+), 6 deletions(-) 23 5 files changed, 101 insertions(+), 6 deletions(-)
25 24
26Index: b/libelf/gelf_getrel.c 25Index: elfutils-0.175/libelf/gelf_getrel.c
27=================================================================== 26===================================================================
28--- a/libelf/gelf_getrel.c 27--- elfutils-0.175.orig/libelf/gelf_getrel.c
29+++ b/libelf/gelf_getrel.c 28+++ elfutils-0.175/libelf/gelf_getrel.c
30@@ -36,6 +36,7 @@ 29@@ -36,6 +36,7 @@
31 30
32 #include "libelfP.h" 31 #include "libelfP.h"
@@ -66,10 +65,10 @@ Index: b/libelf/gelf_getrel.c
66 } 65 }
67 66
68 rwlock_unlock (scn->elf->lock); 67 rwlock_unlock (scn->elf->lock);
69Index: b/libelf/gelf_getrela.c 68Index: elfutils-0.175/libelf/gelf_getrela.c
70=================================================================== 69===================================================================
71--- a/libelf/gelf_getrela.c 70--- elfutils-0.175.orig/libelf/gelf_getrela.c
72+++ b/libelf/gelf_getrela.c 71+++ elfutils-0.175/libelf/gelf_getrela.c
73@@ -36,6 +36,7 @@ 72@@ -36,6 +36,7 @@
74 73
75 #include "libelfP.h" 74 #include "libelfP.h"
@@ -109,10 +108,10 @@ Index: b/libelf/gelf_getrela.c
109 } 108 }
110 109
111 rwlock_unlock (scn->elf->lock); 110 rwlock_unlock (scn->elf->lock);
112Index: b/libelf/gelf_update_rel.c 111Index: elfutils-0.175/libelf/gelf_update_rel.c
113=================================================================== 112===================================================================
114--- a/libelf/gelf_update_rel.c 113--- elfutils-0.175.orig/libelf/gelf_update_rel.c
115+++ b/libelf/gelf_update_rel.c 114+++ elfutils-0.175/libelf/gelf_update_rel.c
116@@ -36,6 +36,7 @@ 115@@ -36,6 +36,7 @@
117 116
118 #include "libelfP.h" 117 #include "libelfP.h"
@@ -154,10 +153,10 @@ Index: b/libelf/gelf_update_rel.c
154 } 153 }
155 154
156 result = 1; 155 result = 1;
157Index: b/libelf/gelf_update_rela.c 156Index: elfutils-0.175/libelf/gelf_update_rela.c
158=================================================================== 157===================================================================
159--- a/libelf/gelf_update_rela.c 158--- elfutils-0.175.orig/libelf/gelf_update_rela.c
160+++ b/libelf/gelf_update_rela.c 159+++ elfutils-0.175/libelf/gelf_update_rela.c
161@@ -36,6 +36,7 @@ 160@@ -36,6 +36,7 @@
162 161
163 #include "libelfP.h" 162 #include "libelfP.h"
@@ -199,11 +198,11 @@ Index: b/libelf/gelf_update_rela.c
199 } 198 }
200 199
201 result = 1; 200 result = 1;
202Index: b/src/strip.c 201Index: elfutils-0.175/src/strip.c
203=================================================================== 202===================================================================
204--- a/src/strip.c 203--- elfutils-0.175.orig/src/strip.c
205+++ b/src/strip.c 204+++ elfutils-0.175/src/strip.c
206@@ -598,6 +598,23 @@ handle_elf (int fd, Elf *elf, const char 205@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char
207 goto fail; 206 goto fail;
208 } 207 }
209 208
@@ -225,5 +224,5 @@ Index: b/src/strip.c
225+ } 224+ }
226+ 225+
227 /* Copy over the old program header if needed. */ 226 /* Copy over the old program header if needed. */
228 if (ehdr->e_type != ET_REL) 227 if (phnum > 0)
229 for (cnt = 0; cnt < phnum; ++cnt) 228 {