diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch b/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch index be48ef010b..fa2282b8dd 100644 --- a/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch +++ b/meta/recipes-devtools/elfutils/files/0002-Fix-elf_cvt_gunhash-if-dest-and-src-are-same.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 1643d793761216252bb654e28aaa5b8eb1536bca Mon Sep 17 00:00:00 2001 | 1 | From d8f07a23d608b744dcc0592f9f32f258b186a77c Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Tue, 15 Aug 2017 17:13:59 +0800 | 3 | Date: Tue, 15 Aug 2017 17:13:59 +0800 |
4 | Subject: [PATCH] Fix elf_cvt_gunhash if dest and src are same. | 4 | Subject: [PATCH] Fix elf_cvt_gunhash if dest and src are same. |
@@ -12,16 +12,15 @@ Signed-off-by: Baoshan Pang <BaoShan.Pang@windriver.com> | |||
12 | 12 | ||
13 | Rebase to 0.170 | 13 | Rebase to 0.170 |
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
15 | |||
16 | --- | 15 | --- |
17 | libelf/gnuhash_xlate.h | 3 ++- | 16 | libelf/gnuhash_xlate.h | 3 ++- |
18 | 1 file changed, 2 insertions(+), 1 deletion(-) | 17 | 1 file changed, 2 insertions(+), 1 deletion(-) |
19 | 18 | ||
20 | diff --git a/libelf/gnuhash_xlate.h b/libelf/gnuhash_xlate.h | 19 | diff --git a/libelf/gnuhash_xlate.h b/libelf/gnuhash_xlate.h |
21 | index 6faf113..04d9ca1 100644 | 20 | index 3a00ae0..40468fc 100644 |
22 | --- a/libelf/gnuhash_xlate.h | 21 | --- a/libelf/gnuhash_xlate.h |
23 | +++ b/libelf/gnuhash_xlate.h | 22 | +++ b/libelf/gnuhash_xlate.h |
24 | @@ -40,6 +40,7 @@ elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode) | 23 | @@ -42,6 +42,7 @@ elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode) |
25 | words. We must detangle them here. */ | 24 | words. We must detangle them here. */ |
26 | Elf32_Word *dest32 = dest; | 25 | Elf32_Word *dest32 = dest; |
27 | const Elf32_Word *src32 = src; | 26 | const Elf32_Word *src32 = src; |
@@ -29,7 +28,7 @@ index 6faf113..04d9ca1 100644 | |||
29 | 28 | ||
30 | /* First four control words, 32 bits. */ | 29 | /* First four control words, 32 bits. */ |
31 | for (unsigned int cnt = 0; cnt < 4; ++cnt) | 30 | for (unsigned int cnt = 0; cnt < 4; ++cnt) |
32 | @@ -50,7 +51,7 @@ elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode) | 31 | @@ -52,7 +53,7 @@ elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode) |
33 | len -= 4; | 32 | len -= 4; |
34 | } | 33 | } |
35 | 34 | ||