From: Alan Modra Date: Thu, 21 Jun 2007 00:31:39 +0000 (+0000) Subject: * embedspu.sh (relas): Correct sh_info parsing. X-Git-Tag: binutils-2_18-branchpoint~416 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daaf07b2446eb0cb4d2c4f387b0819214c0e2a07;p=external%2Fbinutils.git * embedspu.sh (relas): Correct sh_info parsing. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 41b184d..99e4de8 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 b7b6620..6611172 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.