Patch to prepare for libtool update

Andrew Pinski pinskia@gmail.com
Sun Apr 15 06:30:00 GMT 2007


On 4/14/07, Steve Ellcey <sje@cup.hp.com> wrote:
> Here are the GCC patches needed in advance of updating libtool.  They
> have been tested with and without the new libtool in place.  This patch
> does *not* include the new libtool itself.  These changes were approved
> by Paolo and I will check them in shortly.  I will be checking in the
> src tree changes too.

I think this patch causes spu-elf to fail to build:
/home/apinski/src/local/gcc/objdir-spu/./gcc/xgcc -shared-libgcc
-B/home/apinski/src/local/gcc/objdir-spu/./gcc -nostdinc++
-L/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/src
-L/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/src/.libs
-B/home/apinski/gcc-spu/spu-elf/bin/
-B/home/apinski/gcc-spu/spu-elf/lib/ -isystem
/home/apinski/gcc-spu/spu-elf/include -isystem
/home/apinski/gcc-spu/spu-elf/sys-include
-I/home/apinski/src/local/gcc/libstdc++-v3/../gcc
-I/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/include/spu-elf
-I/home/apinski/src/local/gcc/objdir-spu/spu-elf/libstdc++-v3/include
-I/home/apinski/src/local/gcc/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-g -O2 -c /home/apinski/src/local/gcc/libstdc++-v3/libsupc++/bad_cast.cc
 -fPIC -DPIC -o bad_cast.o
/home/apinski/src/local/gcc/libstdc++-v3/libsupc++/typeinfo:169:
error: creating run-time relocation for '_ZTISt8bad_cast'

Before we did not compile with -fPIC at all but now are trying to
compile with -fPIC which fails when there are runtime relocations
because right now spu-elf's loaders don't support runtime relocations.

You can easy reproduce this bug with a cross to spu-elf.

Thanks,
Andrew Pinski



More information about the Libstdc++ mailing list