Patchwork [v2,03/11] tilo: support latest binutils

login
register
mail settings
Submitter Aaro Koskinen
Date Dec. 23, 2013, 7:43 p.m.
Message ID <1387827813-8279-4-git-send-email-aaro.koskinen@iki.fi>
Download mbox | patch
Permalink /patch/304837/
State Accepted
Delegated to: David Miller
Headers show

Comments

Aaro Koskinen - Dec. 23, 2013, 7:43 p.m.
Latest versions of binutils mark _end with "B" instead of "A".
Support both of them.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
---
 tilo/tilo.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/tilo/tilo.sh b/tilo/tilo.sh
index ff60063200b2..f152e288d967 100755
--- a/tilo/tilo.sh
+++ b/tilo/tilo.sh
@@ -50,7 +50,7 @@  do_image () {
 	to_remove="$to_remove $KERNEL.gz"
 	PSIZE=`ls -l $KERNEL.gz | awk '{print$5}'`
 	SIZE=`ls -l $KERNEL.raw | awk '{print$5}'`
-	ROOTA=`nm $KERNEL | awk '/A _end$/{print$1}'`
+	ROOTA=`nm $KERNEL | awk '/[AB] _end$/{print$1}'`
 	rm $KERNEL.raw
 	echo "Sizes ($tag):"
 	echo "  raw size     = $SIZE"