Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From 7e202ea55e8dd803278d9d1eac7ffd355344d6be Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: OpenEmbedded <oe.patch@oe> |
| 3 | Date: Wed, 11 Apr 2018 22:51:00 +0200 |
| 4 | Subject: [PATCH] kexec-elf-rel: use our elf.h |
| 5 | |
| 6 | Fix: |
| 7 | |
| 8 | kexec-elf-rel.c: In function 'elf_rel_load': |
| 9 | kexec-elf-rel.c:386:39: error: 'STT_NOTYPE' undeclared |
| 10 | |
| 11 | and similar. |
| 12 | |
| 13 | Upstream-Status: Inappropriate [klibc specific] |
| 14 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> |
| 15 | |
| 16 | --- |
| 17 | kexec/arch/arm/kexec-elf-rel-arm.c | 2 +- |
| 18 | kexec/arch/i386/kexec-elf-rel-x86.c | 2 +- |
| 19 | kexec/arch/ppc/kexec-elf-rel-ppc.c | 2 +- |
| 20 | kexec/arch/ppc64/kexec-elf-rel-ppc64.c | 2 +- |
| 21 | kexec/arch/x86_64/kexec-elf-rel-x86_64.c | 2 +- |
| 22 | kexec/kexec-elf-rel.c | 2 +- |
| 23 | 6 files changed, 6 insertions(+), 6 deletions(-) |
| 24 | |
| 25 | diff --git a/kexec/arch/arm/kexec-elf-rel-arm.c b/kexec/arch/arm/kexec-elf-rel-arm.c |
| 26 | index a939cf4..2551dc0 100644 |
| 27 | --- a/kexec/arch/arm/kexec-elf-rel-arm.c |
| 28 | +++ b/kexec/arch/arm/kexec-elf-rel-arm.c |
| 29 | @@ -1,5 +1,5 @@ |
| 30 | #include <stdio.h> |
| 31 | -#include <elf.h> |
| 32 | +#include "../../../include/elf.h" |
| 33 | #include "../../kexec.h" |
| 34 | #include "../../kexec-elf.h" |
| 35 | |
| 36 | diff --git a/kexec/arch/i386/kexec-elf-rel-x86.c b/kexec/arch/i386/kexec-elf-rel-x86.c |
| 37 | index 55a214e..e7583d1 100644 |
| 38 | --- a/kexec/arch/i386/kexec-elf-rel-x86.c |
| 39 | +++ b/kexec/arch/i386/kexec-elf-rel-x86.c |
| 40 | @@ -1,5 +1,5 @@ |
| 41 | #include <stdio.h> |
| 42 | -#include <elf.h> |
| 43 | +#include "../../../include/elf.h" |
| 44 | #include "../../kexec.h" |
| 45 | #include "../../kexec-elf.h" |
| 46 | |
| 47 | diff --git a/kexec/arch/ppc/kexec-elf-rel-ppc.c b/kexec/arch/ppc/kexec-elf-rel-ppc.c |
| 48 | index 1acbd86..a60c66c 100644 |
| 49 | --- a/kexec/arch/ppc/kexec-elf-rel-ppc.c |
| 50 | +++ b/kexec/arch/ppc/kexec-elf-rel-ppc.c |
| 51 | @@ -1,5 +1,5 @@ |
| 52 | #include <stdio.h> |
| 53 | -#include <elf.h> |
| 54 | +#include "../../../include/elf.h" |
| 55 | #include "../../kexec.h" |
| 56 | #include "../../kexec-elf.h" |
| 57 | |
| 58 | diff --git a/kexec/arch/ppc64/kexec-elf-rel-ppc64.c b/kexec/arch/ppc64/kexec-elf-rel-ppc64.c |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 59 | index 51b1354..c85f421 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 60 | --- a/kexec/arch/ppc64/kexec-elf-rel-ppc64.c |
| 61 | +++ b/kexec/arch/ppc64/kexec-elf-rel-ppc64.c |
| 62 | @@ -1,5 +1,5 @@ |
| 63 | #include <stdio.h> |
| 64 | -#include <elf.h> |
| 65 | +#include "../../../include/elf.h" |
| 66 | #include <string.h> |
| 67 | #include "../../kexec.h" |
| 68 | #include "../../kexec-elf.h" |
| 69 | diff --git a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 70 | index db85b44..761a4ed 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 71 | --- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c |
| 72 | +++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c |
| 73 | @@ -1,5 +1,5 @@ |
| 74 | #include <stdio.h> |
| 75 | -#include <elf.h> |
| 76 | +#include "../../../include/elf.h" |
| 77 | #include "../../kexec.h" |
| 78 | #include "../../kexec-elf.h" |
| 79 | |
| 80 | diff --git a/kexec/kexec-elf-rel.c b/kexec/kexec-elf-rel.c |
| 81 | index 9a6e63d..a856636 100644 |
| 82 | --- a/kexec/kexec-elf-rel.c |
| 83 | +++ b/kexec/kexec-elf-rel.c |
| 84 | @@ -4,7 +4,7 @@ |
| 85 | #include <stdio.h> |
| 86 | #include <errno.h> |
| 87 | #include <stdlib.h> |
| 88 | -#include "elf.h" |
| 89 | +#include "../include/elf.h" |
| 90 | #include <boot/elf_boot.h> |
| 91 | #include "kexec.h" |
| 92 | #include "kexec-elf.h" |