From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 19 Apr 2017 13:29:53 -0400 Subject: [U-Boot] [PATCH v3 2/3] u-boot.elf: fix entry symbol not found warning In-Reply-To: <1492547733-32347-3-git-send-email-noltari@gmail.com> References: <1492293846-10640-15-git-send-email-noltari@gmail.com> <1492547733-32347-1-git-send-email-noltari@gmail.com> <1492547733-32347-3-git-send-email-noltari@gmail.com> Message-ID: <20170419172953.GM19487@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Tue, Apr 18, 2017 at 10:35:32PM +0200, Álvaro Fernández Rojas wrote: > LD gives the following warning when trying to process u-boot-elf.o > warning: cannot find entry symbol __start; defaulting to 0000000080010000 > Fix this by renaming _start to __start > > Signed-off-by: Álvaro Fernández Rojas > --- > v3: Introduce changes suggested by Daniel Schwierzeck: > - Split patches. > v2: Introduce changes suggested by Daniel Schwierzeck: > - Fix _start vs __start symbol. > > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 8730550..66c9be2 100644 > --- a/Makefile > +++ b/Makefile > @@ -1187,7 +1187,7 @@ u-boot-img-spl-at-end.bin: u-boot.img spl/u-boot-spl.bin FORCE > u-boot.elf: u-boot.bin > @$(OBJCOPY) -I binary $(PLATFORM_ELFFLAGS) $< u-boot-elf.o > @$(LD) u-boot-elf.o -o $@ \ > - --defsym=_start=$(CONFIG_SYS_TEXT_BASE) \ > + --defsym=__start=$(CONFIG_SYS_TEXT_BASE) \ > -Ttext=$(CONFIG_SYS_TEXT_BASE) > > # Rule to link u-boot I don't know what's going on here, but I don't think this is right. We don't see this warning on aarch64 today. I would think that since we're talking about ELF _start vs __start would be part of the standard. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: