On Wednesday 01 April 2009 03:36, Weddington, Eric wrote:
[...]
> So, I still stick with the patch, unless someone can show me that it is an
> easier patch to do it the other way.
Note, the patching of Avr-libc is not sufficient.
The 'libgcc.a' contains 2 names: '.text.libgcc' and '.text'.
The example below illustrates the renaming after
installing the standart avr toolset "as is".
Regards,
Dmitry.
# Original set of libs.
LIBS="$GCCDIR/avr/lib/lib*.a \
$GCCDIR/lib/gcc/avr/4.1.2/lib*.a"
for oldlib in $LIBS ; do
newlib=`basename $oldlib`
rm -f $newlib
case $newlib in
libg*) renames=".text=.text.libgcc.gcc" ;;
libm.a) renames=".text.fplib=.text.avr-libc.fplib \
.text=.text.avr-libc" ;;
*) renames=".text.ctype=.text.avr-libc.ctype \
.text.fplib=.text.avr-libc.fplib \
.text=.text.avr-libc" ;;
esac
for obj in `avr-ar -t $oldlib` ; do
avr-ar x $oldlib $obj
for s in $renames ; do
avr-objcopy --rename-section $s $obj
done
avr-ar rc $newlib $obj
rm $obj
done
done
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev