From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Wed, 15 May 2013 17:01:48 +0200 Subject: [U-Boot] [PATCH 4/5] arm: ensure u-boot only uses relative relocations In-Reply-To: <676349438.841060.1368625750457.JavaMail.root@advansee.com> References: <1368561780-19104-1-git-send-email-albert.u.boot@aribaud.net> <1368561780-19104-2-git-send-email-albert.u.boot@aribaud.net> <1368561780-19104-3-git-send-email-albert.u.boot@aribaud.net> <1368561780-19104-4-git-send-email-albert.u.boot@aribaud.net> <1368561780-19104-5-git-send-email-albert.u.boot@aribaud.net> <513800182.822768.1368569544454.JavaMail.root@advansee.com> <20130515094617.5d79dca9@lilith> <20130515113837.2b0caef8@lilith> <676349438.841060.1368625750457.JavaMail.root@advansee.com> Message-ID: <20130515170148.63b95d4e@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Beno?t, On Wed, 15 May 2013 15:49:10 +0200 (CEST), Beno?t Th?baudeau wrote: > Hi Albert, > > On Wednesday, May 15, 2013 11:38:37 AM, Albert ARIBAUD wrote: > > Hi again Beno?t, > > > > On Wed, 15 May 2013 09:46:17 +0200, Albert ARIBAUD > > wrote: > > > > > Hi Beno?t, > > > > > > On Wed, 15 May 2013 00:12:24 +0200 (CEST), Beno?t Th?baudeau > > > wrote: > > > > > > > Hi Albert, > > > > > > > > --- a/Makefile > > > > > +++ b/Makefile > > > > > @@ -746,6 +746,13 @@ tools: $(VERSION_FILE) $(TIMESTAMP_FILE) > > > > > $(MAKE) -C $@ all > > > > > endif # config.mk > > > > > > > > > > +# ARM relocations should all be R_ARM_RELATIVE. > > > > > +checkarmreloc: $(obj)u-boot > > > > > + @if test "R_ARM_RELATIVE" != \ > > > > > + "`readelf -r $(obj)u-boot | cut -d ' ' -f 4 | grep R_ARM | sort > > > > > -u`"; \ > > > > ^ > > > > or $$< to avoid a duplicate? > > > > > > Will fix as suggested. > > > > > > > + then echo "$(obj)u-boot contains relocations other than \ > > > > ^ > > > > or $$< too, or no $(obj) prefix@all for > > > > this message? > > > > > > I prefer leaving the prefix so that failures during out-of-tree builds > > > or during MAKEALL builds with BUILD_NBUILDS>1 log the correct path. > > > > Actually $$< does not work within backquotes unless escaped as a less > > legible \$\$<, and does not work properly@all within double quotes, > > whether escaped or not. > > > > Do you prefer that I change only the first $(obj)u-boot into \$\$< and > > leave the second one untouched, or that I leave both $(obj)u-boot > > instances as-is for the sake of homogeneity? > > Actually, a single dollar sign (i.e. "$<") would be needed since it must have > been expanded by make before reaching the shell, and no shell backslash escape > sequences should be required. > > If this still does not pass smoothly, then I prefer simplicity and homogeneity. Single unescaped $< works like a charm within backward as well as double quotes, thanks! > Best regards, > Beno?t Amicalement, -- Albert.