* embedspu.sh (relas): Correct sh_info parsing.

This commit is contained in:
Alan Modra 2007-06-21 00:31:39 +00:00
parent 8685c9a3b1
commit daaf07b244
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-06-21 Alan Modra <amodra@bigpond.net.au>
* embedspu.sh (relas): Correct sh_info parsing.
2007-06-19 Danny Smith <dannysmith@users.sourceforge.net>
* 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 <bwatt@us.ibm.com>
2007-06-18 Brian D. Watt <bwatt@us.ibm.com>
* embedspu.sh: Parse _SPUEAR_ symbol values as hex.

View File

@ -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.