public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] improve hello_world standalone application for arm
@ 2017-08-12  9:03 Max Krummenacher
  2017-08-12  9:03 ` [U-Boot] [PATCH 1/2] arm: use $loadaddr as the standalone entry point Max Krummenacher
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Max Krummenacher @ 2017-08-12  9:03 UTC (permalink / raw)
  To: u-boot


This series addresses
- hardcoded entry address, use LOADADDR if available as the entry point instead
- fix thumb build, jumping with 'go' to the entry point expects arm code

Note that in addition to the two fixes I've seen random freezes
or 'random' printed stuff when using an early linaro gcc 6 compiler.
Adding an initialized variable helped in that case
static int dummy_var_in_text = 1;
I assume that this forces alignment of some linker sections.
(e.g. I see that __bss_start points to 0x1201027e, with the variable
this moves to 0x12010280)

However with the current linaro compilers this does not happen so I
don't propose a patch for this issue.
Linaro GCC 5.4-2017.05 5.4.1 20170404
Linaro GCC 6.3-2017.05 6.3.1 20170404
Linaro GCC 7.1-2017.05 7.1.1 20170510

This series is available at http://git.toradex.com/cgit/u-boot-toradex.git/log/?h=for-next


Max Krummenacher (2):
  arm: use $loadaddr as the standalone entry point
  hello_world.c: fix entry point in case of arm thumb binary

 arch/arm/config.mk                |  4 ++++
 doc/README.standalone             |  2 +-
 examples/standalone/hello_world.c | 15 +++++++++++++++
 3 files changed, 20 insertions(+), 1 deletion(-)

-- 
2.13.1

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

end of thread, other threads:[~2017-08-19  1:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-12  9:03 [U-Boot] [PATCH 0/2] improve hello_world standalone application for arm Max Krummenacher
2017-08-12  9:03 ` [U-Boot] [PATCH 1/2] arm: use $loadaddr as the standalone entry point Max Krummenacher
2017-08-12 18:29   ` Wolfgang Denk
2017-08-12 21:21     ` Max Krummenacher
2017-08-14 19:36       ` Wolfgang Denk
2017-08-14 21:13         ` Tom Rini
2017-08-15  7:32           ` Wolfgang Denk
2017-08-15 11:39             ` Tom Rini
2017-08-15 12:22               ` Max Krummenacher
2017-08-15 13:31                 ` Wolfgang Denk
2017-08-15 13:21               ` Wolfgang Denk
2017-08-19  1:35                 ` Tom Rini
2017-08-12  9:03 ` [U-Boot] [PATCH 2/2] hello_world.c: fix entry point in case of arm thumb binary Max Krummenacher
2017-08-12 18:39   ` Wolfgang Denk
2017-08-12 21:31     ` Max Krummenacher
2017-08-14 19:46       ` Wolfgang Denk
2017-08-14 21:15   ` Tom Rini
2017-08-15 12:24     ` Max Krummenacher
2017-08-12 18:32 ` [U-Boot] [PATCH 0/2] improve hello_world standalone application for arm Wolfgang Denk
2017-08-12 21:21   ` Max Krummenacher

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