From daaf07b2446eb0cb4d2c4f387b0819214c0e2a07 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 21 Jun 2007 00:31:39 +0000 Subject: [PATCH] * embedspu.sh (relas): Correct sh_info parsing. --- binutils/ChangeLog | 6 +++++- binutils/embedspu.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 41b184d5b8b..99e4de8785d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2007-06-21 Alan Modra + + * embedspu.sh (relas): Correct sh_info parsing. + 2007-06-19 Danny Smith * objdump.c: Include sys/stat.h. @@ -49,7 +53,7 @@ * doc/binutils.texi: Document new option. * NEWS: Mention new features of windres. -2007-06-18 Brian D. Watt +2007-06-18 Brian D. Watt * embedspu.sh: Parse _SPUEAR_ symbol values as hex. diff --git a/binutils/embedspu.sh b/binutils/embedspu.sh index b7b6620321c..6611172814e 100644 --- a/binutils/embedspu.sh +++ b/binutils/embedspu.sh @@ -124,7 +124,7 @@ main () sections=`echo ${sections}` # For relocation sections, pick off file offset and info (points to # section where relocs apply) - relas=`${READELF} -S ${INFILE} | sed -n -e 's, *\[ *[0-9]*\] *[^ ]* *RELA *[0-9a-f]* *0*\([0-9a-f][0-9a-f]*\) .*\([0-9a-f][0-9a-f]*\) *[0-9a-f][0-9a-f]*$,\1 \2,p'` + relas=`${READELF} -S ${INFILE} | sed -n -e 's, *\[ *[0-9]*\] *[^ ]* *RELA *[0-9a-f]* *0*\([0-9a-f][0-9a-f]*\).* \([0-9a-f][0-9a-f]*\) *[0-9a-f][0-9a-f]*$,\1 \2,p'` relas=`echo ${relas}` # Build embedded SPU image. -- 2.30.2