public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew F. Davis <afd@ti.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 01/10] lib: elf: Move the generic elf loading/validating functions to lib
Date: Tue, 21 Jan 2020 07:47:48 -0500	[thread overview]
Message-ID: <fab93df1-34df-1bf2-e663-b59f0035cf2b@ti.com> (raw)
In-Reply-To: <20200121110749.28714-2-j-keerthy@ti.com>

On 1/21/20 6:07 AM, Keerthy wrote:
> Move the generic elf loading/validating functions to lib/
> so that they can be re-used and accessed by code existing
> outside cmd.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> Suggested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
> ---
> diff --git a/include/elf.h b/include/elf.h
> index 81f40191d7..e7c51986df 100644
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -692,6 +692,10 @@ unsigned long elf_hash(const unsigned char *name);
>  
>  #ifndef __ASSEMBLER__
>  int valid_elf_image(unsigned long addr);
> +unsigned long load_elf64_image_phdr(unsigned long addr);
> +unsigned long load_elf64_image_shdr(unsigned long addr);
> +unsigned long load_elf_image_phdr(unsigned long addr);
> +unsigned long load_elf_image_shdr(unsigned long addr);
>  #endif
>  
>  #endif /* _ELF_H */
> diff --git a/lib/Kconfig b/lib/Kconfig
> index d040a87d26..b155ced4b2 100644
> --- a/lib/Kconfig
> +++ b/lib/Kconfig
> @@ -601,4 +601,7 @@ config TEST_FDTDEC
>  config LIB_DATE
>  	bool
>  
> +config ELF


LIB_ELF?

Andrew

  reply	other threads:[~2020-01-21 12:47 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-21 11:07 [PATCH v3 00/10] Add support for loading main_r5fss0_core0 Keerthy
2020-01-21 11:07 ` [PATCH v3 01/10] lib: elf: Move the generic elf loading/validating functions to lib Keerthy
2020-01-21 12:47   ` Andrew F. Davis [this message]
2020-01-21 11:07 ` [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores Keerthy
2020-01-21 12:56   ` Andrew F. Davis
2020-01-22  1:10     ` keerthy
2020-01-22 16:25       ` Andrew F. Davis
2020-01-23  4:10         ` Keerthy
2020-01-23 13:24           ` Andrew F. Davis
2020-01-23 16:44             ` Keerthy
2020-01-23 17:05               ` Andrew F. Davis
2020-01-23 17:19                 ` Keerthy
2020-01-24  8:42                   ` Tero Kristo
2020-01-24 15:23                     ` Andrew F. Davis
2020-01-24 12:03                   ` Keerthy
2020-02-05 12:07                     ` Lokesh Vutla
2020-01-21 11:07 ` [PATCH v3 03/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM Keerthy
2020-01-21 11:07 ` [PATCH v3 04/10] armv7R: K3: Add support for jumping to firmware Keerthy
2020-01-21 11:07 ` [PATCH v3 05/10] arm: dts: k3-j721e-r5: Add fs_loader node Keerthy
2020-01-21 11:07 ` [PATCH v3 06/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL Keerthy
2020-01-21 11:07 ` [PATCH v3 07/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 Keerthy
2020-01-21 13:02   ` Andrew F. Davis
2020-01-21 11:07 ` [PATCH v3 08/10] configs: j721e_evm_r5: Enable R5F remoteproc support Keerthy
2020-01-21 13:03   ` Andrew F. Davis
2020-01-21 11:07 ` [PATCH v3 09/10] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC Keerthy
2020-01-21 11:07 ` [PATCH v3 10/10] env: nowhere: set default enviroment Keerthy
2020-01-21 13:07   ` Andrew F. Davis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fab93df1-34df-1bf2-e663-b59f0035cf2b@ti.com \
    --to=afd@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox