http://sourceware.org/bugzilla/show_bug.cgi?id=13991
--- Comment #5 from Joel Sherrill <joel.sherrill at oarcorp dot com> 2012-04-23
13:19:18 UTC ---
Following up on Sebastian's script to analyse the section of each global symbol
to see if there was a pattern. I don't see any pattern and I don't see any
difference between the symbols which work and don't work in any nm format
output.
This is the output:
===========================
good: 25
27 T
===========================
bad: 717
1 A
4 B
3 D
7 G
4 R
14 S
1036 T
And this is the script:
====================================================
rm -f log.txt
for i in `powerpc-rtems4.11-nm -g hello.exe | awk '/ T / {print $3}'` ; do
sed s%__rtems_start%$i% < ppcboot.lds > ppcboot.lds.tmp
powerpc-rtems4.11-ld -o hello.ralf bootloader.o --just-symbols=hello.exe -b
binary rtems.gz -T ppcboot.lds.tmp -Map hello.map >/dev/null 2>&1
if test $? -eq 0 ; then
echo good $i >> log.txt
else
echo bad $i >> log.txt
fi
done
breakdown()
{
echo "==========================="
echo "$1: " `grep $1 log.txt | wc -l`
grep $1 log.txt | cut -d' ' -f2 | while read s;
do
powerpc-rtems4.11-nm -g hello.exe | grep $s
done | cut -d' ' -f2 | sort | uniq -c
}
breakdown good
breakdown bad
====================================================
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils