From: Tom Rini Date: Mon, 14 Aug 2017 17:13:00 -0400 Subject: [U-Boot] [PATCH 1/2] arm: use $loadaddr as the standalone entry point In-Reply-To: <20170814193635.82A43120217@gemini.denx.de> References: <20170812090346.7887-1-max.krummenacher@toradex.com> <20170812182951.D4D52120203@gemini.denx.de> <1502572898.17070.11.camel@gmail.com> <20170814193635.82A43120217@gemini.denx.de> Message-ID: <20170814211300.GM20467@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Aug 14, 2017 at 09:36:35PM +0200, Wolfgang Denk wrote: > Dear Max, > > In message <1502572898.17070.11.camel@gmail.com> you wrote: > > > > Ok, will do. The issue is that linking the standalone application > > to have its text segment at a hardcoded address is less > > likely to work than using an address provided by the board > > This may (or may not) be the case - but no matter how youlook at it, > chosing CONFIG_LOADADDR is definitely the wrong approach, as the > LOAD address has nothing to do with the ENTRY point address, so it > must in no case ever play a role when linking an image. > > > configuration as a possible load address. > > You are confused in your wording, and I'm afraid in your thinking, > too. > > load address != entry point. But we're talking about CONFIG_STANDALONE_LOAD_ADDR not CONFIG_STANDALONE_ENTRY_POINT. What we've been doing in arch/arm/config.mk has been on my to fix list for a long time, because it's been wrong for so many boards. Setting this to CONFIG_LOADADDR is a reasonable default value. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: