[U-Boot] [Port] Ecounter a problem while Compiling uboot with android toolchain

liu tao liutao5658 at gmail.com
Thu Apr 24 05:40:30 CEST 2014


Hi all,
     When I commpile uboot with android toolchain, I encounter a problem:
     "u-boot contains unexpected relocations:make V=132
      R_ARM_RELATIVE"

Below is my steps:
# arm-linux-androideabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-androideabi-gcc
COLLECT_LTO_WRAPPER=/home/lt/app/toolchain/arm-linux-androideabi-4.6/bin/../libexec/gcc/arm-linux-androideabi/4.6/lto-wrapper
Target: arm-linux-androideabi
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.6/configure
--prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--target=arm-linux-androideabi --host=x86_64-linux-gnu
--build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld
--enable-languages=c,c++
--with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-cloog=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--with-ppl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install
--disable-ppl-version-check --disable-cloog-version-check
--enable-cloog-backend=isl --with-host-libstdcxx='-static-libgcc
-Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-libssp --enable-threads
--disable-nls --disable-libmudflap --disable-libgomp
--disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared
--disable-tls --disable-libitm --with-float=soft --with-fpu=vfp
--with-arch=armv5te --enable-target-optspace --enable-initfini-array
--disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix
--with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot
--with-binutils-version=2.21 --with-mpfr-version=3.1.1
--with-mpc-version=1.0.1 --with-gmp-version=5.0.5
--with-gcc-version=4.6 --with-gdb-version=7.3.x
--with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.6
--with-bugurl=http://source.android.com/source/report-bugs.html
--disable-bootstrap --disable-libquadmath --enable-plugins
--enable-libgomp --enable-gold --enable-graphite=yes
--with-cloog-version=0.17.0 --with-ppl-version=1.0 --with-arch=armv5te
--program-transform-name='s&^&arm-linux-androideabi-&'
--enable-gold=default
Thread model: posix
gcc version 4.6 20120106 (prerelease) (GCC)

#cd u-boot-2014.04
#export CROSS_COMPOLE=arm-linux-androideabi-
#make smdk2410_config
#make V=1

Attachment is output of "make V=1".
I that should be R_ARM_REL32 not  R_ARM_ABS32, and should I modify all
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
in *.lds ? And modufy elf32-littlearm to what?

-- 
Best Wishes,

Tao, Liu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make_V1
Type: application/octet-stream
Size: 15242 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140424/44096476/attachment.obj>


More information about the U-Boot mailing list