From: Wolfgang Denk Date: Fri, 24 Jun 2011 22:07:34 +0200 Subject: [U-Boot] [PATCH/RFC] unify version_string In-Reply-To: References: <1308905261-3780-1-git-send-email-andreas.devel@googlemail.com> <20110624121823.11F6420155D@gemini.denx.de> Message-ID: <20110624200734.560B620155D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message you wrote: > > > On PowerPC systems, the core is carefully consructed such that the s/core/code/, s/consructed/constructed/ > > U-Boot image starts with the magic number, followed immediately by > > the version string. That means, you can trivially identify any binary > > image, be it as file on the host or on the target, or programmed into > > flash, but just dumping the first bytes of it, for example: > > cant you do this with a linker script update ? Insert strings in the middle of code? Sonds more complicated that what it's worth. I don't see the real problem. I mean, we can provide the definition of the string in some common header file, and then just use it where needed. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Nothing ever becomes real until it is experienced. - John Keats