public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] display the entry point when compiling a stand-alone program
@ 2010-06-10 20:54 Timur Tabi
  2010-06-11 14:46 ` Detlev Zundel
  0 siblings, 1 reply; 3+ messages in thread
From: Timur Tabi @ 2010-06-10 20:54 UTC (permalink / raw)
  To: u-boot

Contrary to popular belief, the entry point for a stand-alone program is not
consistent.  The only way to know for sure is to use the nm program and
search for the entry point function.  So we update the Makefile build rule
to display this entry point after the ELF image is created.

Signed-off-by: Timur Tabi <timur@freescale.com>
---
 examples/standalone/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 6ea3b93..d6a01ea 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -83,6 +83,7 @@ $(obj)%:	$(obj)%.o $(LIB)
 		$(LD) -g -Ttext $(STANDALONE_LOAD_ADDR) \
 			-o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \
 			-L$(gcclibdir) -lgcc
+		$(NM) $@ | grep $@
 
 $(SREC):
 $(obj)%.srec:	$(obj)%
-- 
1.7.0.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-11 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-10 20:54 [U-Boot] [PATCH] display the entry point when compiling a stand-alone program Timur Tabi
2010-06-11 14:46 ` Detlev Zundel
2010-06-11 15:28   ` Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox