[v3] dejagnu support for simple cross compilers
Benjamin Kosnik
bkoz@redhat.com
Fri Apr 6 12:43:00 GMT 2001
Thanks to Alexandre who pointed this out to me last night.
Now (some) cross compilers can actually be tested. I tried with
powerpc-eabism and xscale-elf.
1) for powerpc-eabism: Now getting stuff like:
/mnt/hd/ahimsa/bld-x86-x-powerpc-eabism/powerpc-eabism/libstdc++-v3/../../gcc/collect-ld: warning: cannot find entry symbol _start; defaulting to 01800074
/mnt/hd/ahimsa/bld-x86-x-powerpc-eabism/gcc/libgcc.a(eabi.o): In function `__eabi':
eabi.o(.text+0xc4): undefined reference to `__init'
/mnt/hd/ahimsa/bld-x86-x-powerpc-eabism/gcc/libgcc.a(eabi.o)(.got2+0x8): undefined reference to `__SDATA_START__'
/mnt/hd/ahimsa/bld-x86-x-powerpc-eabism/gcc/libgcc.a(eabi.o)(.got2+0xc): undefined reference to `__SBSS_END__'
/mnt/hd/ahimsa/bld-x86-x-powerpc-eabism/gcc/libgcc.a(eabi.o)(.got2+0x14): undefined reference to `__SDATA2_START__'
/mnt/hd/ahimsa/bld-x86-x-powerpc-eabism/gcc/libgcc.a(eabi.o)(.got2+0x18): undefi
I suspect this is because the newlib build dir doesn't have a crt0.o
in it. If I remember correctly this is one of the targets where this
is vendor-supplied (oh, bother) and thus setting everything up
correctly is a bit of a pain. Geoffrey, if you can help me out here I am
pretty sure I can get this to work.
2) for xscale-elf.
Things are actually linking correctly, whoo-hoo. I am seeing some
link fails due to weird label issues:
/tmp/ccXUNwgh.o: In function `test01()':
/mnt/hd/bliss/src.gcc-merged/libstdc++-v3/testsuite/18_support/numeric_limits.cc:67: undefined reference to `LLSDA8'
/mnt/hd/bliss/src.gcc-merged/libstdc++-v3/testsuite/18_support/numeric_limits.cc:68: undefined reference to `LLSDA9'
/mnt/hd/bliss/src.gcc-merged/libstdc++-v3/testsuite/18_support/numeric_limits.cc:81: undefined reference to `LLSDA10'
/tmp/ccXUNwgh.o: In function `__FRAME_BEGIN__':
/tmp/ccXUNwgh.o(.eh_frame+0x249): undefined reference to `LLSDA11'
A bit psycho, and I won't have time to look at this for a
day or two still. Richard, does ths ring a bell? You might be able to duplicate
this with a mips-elf cross too.
put on head, will be merged to branch shortly.
tested x86/linux
2001-04-06 Benjamin Kosnik <bkoz@redhat.com>
Alexandre Oliva <aoliva@redhat.com>
* tests_flags.in (CROSS_LIB_PATH): Add as -B flag.
Index: tests_flags.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/tests_flags.in,v
retrieving revision 1.18
diff -c -p -r1.18 tests_flags.in
*** tests_flags.in 2001/04/06 08:00:55 1.18
--- tests_flags.in 2001/04/06 19:35:03
*************** case ${query} in
*** 152,158 ****
--built-library)
LIBS="${LIB_PATH}/libstdc++.la -no-install -rpath ${GCC_LIB_PATH}"
if test x@xcompiling@ = x1; then
! LIBS="${LIBS} -L${CROSS_LIB_PATH}"
fi
case @target_os@ in
*cygwin*)
--- 152,158 ----
--built-library)
LIBS="${LIB_PATH}/libstdc++.la -no-install -rpath ${GCC_LIB_PATH}"
if test x@xcompiling@ = x1; then
! LIBS="${LIBS} -B${CROSS_LIB_PATH}/"
fi
case @target_os@ in
*cygwin*)
More information about the Gcc-patches
mailing list