This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

cannot find entry symbol _start; defaulting to 01800074


Trying to cross-compile and link a simple "hello world" type program.  Get
the following warnings & errors:

/export/home/xc/powerpc-eabi/bin/ld: warning: cannot find entry symbol
_start;
defaulting to 01800074
/var/tmp/ccobtGa6.o: In function 'main':
/var/tmp/ccobtGa6.o(.text+0x70): undefined reference to 'printf'
/export/home/gnu-source/build-gcc/gcc/libgcc.a(eabi.o)(.got2+0x8): undefined
reference to '__SDATA_START__'
  plus 14 more undefined references in eabi-ctors.c and libgcc.a and finally
a
collect2: ld returned 1 exit status

Any suggestions or explanations?  I built gcc with newlib as follows:

#host=sparc-sun-solaris2
#target=powerpc-eabi
#prefix=/export/home/xc
#i=$prefix/bin
#PATH=$i:$prefix:$PATH:/export/home/opt/gnu/bin; export PATH
#CC=/export/home/opt/gnu/bin/gcc; export CC

#cd build-binutils
#../binutils-2.11.90.0.1/configure --target=$target --prefix=$prefix -v
#make all install

#cd /export/home/gnu-source/gcc-2.95.2
#ln -s ../newlib-1.9.0/newlib newlib
#ln -s ../newlib-1.9.0/libgloss libgloss

#cd /export/home/gnu-source/build-gcc
#../gcc-2.95.2/configure --target=$target --prefix=$prefix
--enable-languages=c -v
#make all install

#cd /export/home/gnu-source/build-newlib
#../newlib-1.9.0/configure --target=$target --prefix=$prefix -v
#make all install

  Reconfigure and install gcc for C,C++, and additional languages

#cd /export/home/gnu-source/build-gcc
#../gcc-2.95.2/configure --target=$target --prefix=$prefix -v
#make all install

Regards, Steve Conyers


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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