This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to prepare for libtool update


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]