summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-10-08 22:57:31 +0200
committerTom Rini <trini@ti.com>2014-10-25 07:02:00 -0400
commit553d8c3a5a028e01c575480de4894025b4fa01f4 (patch)
treec9a8d15d65ba5f50e6b7f9772913813ac7efcd69
parent69d275458893eaec35229b589092c2a6bde5440f (diff)
downloadu-boot-imx-553d8c3a5a028e01c575480de4894025b4fa01f4.zip
u-boot-imx-553d8c3a5a028e01c575480de4894025b4fa01f4.tar.gz
u-boot-imx-553d8c3a5a028e01c575480de4894025b4fa01f4.tar.bz2
common: cmd_elf: make do_bootelf_exec static
do_bootelf_exec was a weak function without a prototype nor and strong version. Just make it static. Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
-rw-r--r--common/cmd_elf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/cmd_elf.c b/common/cmd_elf.c
index ab9c7e3..2f229d7 100644
--- a/common/cmd_elf.c
+++ b/common/cmd_elf.c
@@ -28,8 +28,7 @@ static unsigned long load_elf_image_phdr(unsigned long addr);
static unsigned long load_elf_image_shdr(unsigned long addr);
/* Allow ports to override the default behavior */
-__attribute__((weak))
-unsigned long do_bootelf_exec(ulong (*entry)(int, char * const[]),
+static unsigned long do_bootelf_exec(ulong (*entry)(int, char * const[]),
int argc, char * const argv[])
{
unsigned long ret;