diff mbox series

[kvm-unit-tests,v2,20/23] lib: Avoid external dependency in libelf

Message ID 20220506205605.359830-21-nikos.nikoleris@arm.com (mailing list archive)
State New, archived
Headers show
Series EFI and ACPI support for arm64 | expand

Commit Message

Nikos Nikoleris May 6, 2022, 8:56 p.m. UTC
There is just a small number of definitions we need from
uapi/linux/elf.h and asm/elf.h and the relocation code is
self-contained.

Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
---
 arm/efi/reloc_aarch64.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Ricardo Koller June 21, 2022, 10:39 p.m. UTC | #1
On Fri, May 06, 2022 at 09:56:02PM +0100, Nikos Nikoleris wrote:
> There is just a small number of definitions we need from
> uapi/linux/elf.h and asm/elf.h and the relocation code is
> self-contained.
> 
> Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
> ---
>  arm/efi/reloc_aarch64.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/arm/efi/reloc_aarch64.c b/arm/efi/reloc_aarch64.c
> index fa0cd6b..3f6d9a6 100644
> --- a/arm/efi/reloc_aarch64.c
> +++ b/arm/efi/reloc_aarch64.c
> @@ -34,8 +34,7 @@
>      SUCH DAMAGE.
>  */
>  
> -#include "efi.h"
> -#include <elf.h>
> +#include <efi.h>
>  
>  efi_status_t _relocate(long ldbase, Elf64_Dyn *dyn, efi_handle_t image,
>  		       efi_system_table_t *sys_tab)
> -- 
> 2.25.1
>

Reviewed-by: Ricardo Koller <ricarkol@google.com>
diff mbox series

Patch

diff --git a/arm/efi/reloc_aarch64.c b/arm/efi/reloc_aarch64.c
index fa0cd6b..3f6d9a6 100644
--- a/arm/efi/reloc_aarch64.c
+++ b/arm/efi/reloc_aarch64.c
@@ -34,8 +34,7 @@ 
     SUCH DAMAGE.
 */
 
-#include "efi.h"
-#include <elf.h>
+#include <efi.h>
 
 efi_status_t _relocate(long ldbase, Elf64_Dyn *dyn, efi_handle_t image,
 		       efi_system_table_t *sys_tab)