From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 24 Jul 2014 10:31:14 +0200 Subject: [U-Boot] [PATCH] Makefile: use u-boot.map for binary_size_check In-Reply-To: <1406179627-9496-1-git-send-email-judge.packham@gmail.com> References: <1406179627-9496-1-git-send-email-judge.packham@gmail.com> Message-ID: <20140724083114.099343822C9@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 Chris Packham, In message <1406179627-9496-1-git-send-email-judge.packham@gmail.com> you wrote: > u-boot.map is generated automatically by the compiler and more > importantly can handle addresses >4GB. ... > > I think it should be possible to change binary_size_check to use > > u-boot.map instead of System.map but would that be OK for all > > architectures? ... > Something like this works for me but maybe there is a way to get nm to handle > addresses >4GB. ... > + map_size=$(shell cat u-boot.map | \ > awk '/_image_copy_start/ {start = $$1} /_image_binary_end/ {end = $$1} END {if (start != "" && end != "") print "ibase=16; " toupper(end) " - " toupper(start)}' \ > + | sed 's/0X//g' \ Do we _really_ need all of this? This looks very much like creaping featurism to me... 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 "Remember, Information is not knowledge; Knowledge is not Wisdom; Wisdom is not truth; Truth is not beauty; Beauty is not love; Love is not music; Music is the best." - Frank Zappa