mirror of
https://git.yoctoproject.org/poky
synced 2026-07-26 19:17:07 +00:00
elfutils: 0.176 -> 0.177
- Update Debian patches http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz - Rebase Debian patches to 0.177 debian/hppa_backend.diff debian/mips_backend.diff debian/arm_backend.diff debian/mips_readelf_w.patch debian/testsuite-ignore-elflint.diff debian/mips_cfi.patch - Fix build failure while applying debian patches 0001-fix-compile-failure-with-debian-patches.patch - Rebase musl patches (From OE-Core rev: 35143611034758cc670e9d88bc93f97fe33c52fc) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5b1e999c41
commit
cc5d6ca85a
+30
-30
@@ -1,7 +1,7 @@
|
||||
From bce44aece915698a224a8aefa66784b27455675b Mon Sep 17 00:00:00 2001
|
||||
From 59d4b8c48e5040af7e02b34eb26ea602ec82a38e Mon Sep 17 00:00:00 2001
|
||||
From: James Cowgill <james410@cowgill.org.uk>
|
||||
Date: Mon, 5 Jan 2015 15:17:02 +0000
|
||||
Subject: [PATCH] Add mips n64 relocation format hack
|
||||
Subject: [PATCH 3/3] Add mips n64 relocation format hack
|
||||
|
||||
MIPSEL N64 ELF files use a slightly different format for storing relocation
|
||||
entries 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
|
||||
before manipulating relocations so that these changes take effect.
|
||||
|
||||
Signed-off-by: James Cowgill <james410@cowgill.org.uk>
|
||||
|
||||
Upstream-Status: Pending [from debian]
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
---
|
||||
libelf/gelf_getrel.c | 25 +++++++++++++++++++++++--
|
||||
libelf/gelf_getrela.c | 25 +++++++++++++++++++++++--
|
||||
@@ -23,10 +23,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
src/strip.c | 17 +++++++++++++++++
|
||||
5 files changed, 101 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/libelf/gelf_getrel.c b/libelf/gelf_getrel.c
|
||||
index 309e3d3..2a81a97 100644
|
||||
--- a/libelf/gelf_getrel.c
|
||||
+++ b/libelf/gelf_getrel.c
|
||||
Index: elfutils-0.175/libelf/gelf_getrel.c
|
||||
===================================================================
|
||||
--- elfutils-0.175.orig/libelf/gelf_getrel.c
|
||||
+++ elfutils-0.175/libelf/gelf_getrel.c
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "libelfP.h"
|
||||
@@ -35,7 +35,7 @@ index 309e3d3..2a81a97 100644
|
||||
|
||||
GElf_Rel *
|
||||
gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst)
|
||||
@@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst)
|
||||
@@ -89,8 +90,28 @@ gelf_getrel (Elf_Data *data, int ndx, GE
|
||||
result = NULL;
|
||||
}
|
||||
else
|
||||
@@ -66,10 +66,10 @@ index 309e3d3..2a81a97 100644
|
||||
}
|
||||
|
||||
rwlock_unlock (scn->elf->lock);
|
||||
diff --git a/libelf/gelf_getrela.c b/libelf/gelf_getrela.c
|
||||
index d695f65..1f42a80 100644
|
||||
--- a/libelf/gelf_getrela.c
|
||||
+++ b/libelf/gelf_getrela.c
|
||||
Index: elfutils-0.175/libelf/gelf_getrela.c
|
||||
===================================================================
|
||||
--- elfutils-0.175.orig/libelf/gelf_getrela.c
|
||||
+++ elfutils-0.175/libelf/gelf_getrela.c
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "libelfP.h"
|
||||
@@ -78,7 +78,7 @@ index d695f65..1f42a80 100644
|
||||
|
||||
GElf_Rela *
|
||||
gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst)
|
||||
@@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst)
|
||||
@@ -90,8 +91,28 @@ gelf_getrela (Elf_Data *data, int ndx, G
|
||||
result = NULL;
|
||||
}
|
||||
else
|
||||
@@ -109,10 +109,10 @@ index d695f65..1f42a80 100644
|
||||
}
|
||||
|
||||
rwlock_unlock (scn->elf->lock);
|
||||
diff --git a/libelf/gelf_update_rel.c b/libelf/gelf_update_rel.c
|
||||
index 14f62e9..9095556 100644
|
||||
--- a/libelf/gelf_update_rel.c
|
||||
+++ b/libelf/gelf_update_rel.c
|
||||
Index: elfutils-0.175/libelf/gelf_update_rel.c
|
||||
===================================================================
|
||||
--- elfutils-0.175.orig/libelf/gelf_update_rel.c
|
||||
+++ elfutils-0.175/libelf/gelf_update_rel.c
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "libelfP.h"
|
||||
@@ -121,7 +121,7 @@ index 14f62e9..9095556 100644
|
||||
|
||||
int
|
||||
gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
|
||||
@@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
|
||||
@@ -86,6 +87,9 @@ gelf_update_rel (Elf_Data *dst, int ndx,
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -131,7 +131,7 @@ index 14f62e9..9095556 100644
|
||||
/* Check whether we have to resize the data buffer. */
|
||||
if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d))
|
||||
{
|
||||
@@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
|
||||
@@ -93,7 +97,21 @@ gelf_update_rel (Elf_Data *dst, int ndx,
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -154,10 +154,10 @@ index 14f62e9..9095556 100644
|
||||
}
|
||||
|
||||
result = 1;
|
||||
diff --git a/libelf/gelf_update_rela.c b/libelf/gelf_update_rela.c
|
||||
index 8825270..4caa85f 100644
|
||||
--- a/libelf/gelf_update_rela.c
|
||||
+++ b/libelf/gelf_update_rela.c
|
||||
Index: elfutils-0.175/libelf/gelf_update_rela.c
|
||||
===================================================================
|
||||
--- elfutils-0.175.orig/libelf/gelf_update_rela.c
|
||||
+++ elfutils-0.175/libelf/gelf_update_rela.c
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "libelfP.h"
|
||||
@@ -166,7 +166,7 @@ index 8825270..4caa85f 100644
|
||||
|
||||
int
|
||||
gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
|
||||
@@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
|
||||
@@ -89,6 +90,9 @@ gelf_update_rela (Elf_Data *dst, int ndx
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -176,7 +176,7 @@ index 8825270..4caa85f 100644
|
||||
/* Check whether we have to resize the data buffer. */
|
||||
if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d))
|
||||
{
|
||||
@@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
|
||||
@@ -96,7 +100,21 @@ gelf_update_rela (Elf_Data *dst, int ndx
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -199,11 +199,11 @@ index 8825270..4caa85f 100644
|
||||
}
|
||||
|
||||
result = 1;
|
||||
diff --git a/src/strip.c b/src/strip.c
|
||||
index a73009d..75bd7ba 100644
|
||||
--- a/src/strip.c
|
||||
+++ b/src/strip.c
|
||||
@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
|
||||
Index: elfutils-0.175/src/strip.c
|
||||
===================================================================
|
||||
--- elfutils-0.175.orig/src/strip.c
|
||||
+++ elfutils-0.175/src/strip.c
|
||||
@@ -1062,6 +1062,23 @@ handle_elf (int fd, Elf *elf, const char
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user