This is the mail archive of the gcc@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]

Information Request


spect. GCC,
i'm an italian student and i'm using gcc cross compiler to try to compile a .c file for a powerPC target using a solaris host. I've tried to compile by using the command line:

powerpc-eabi-gcc -c - o../../marco/prova3.out ../../c-src/prova2.c

and it correctly generate the obj file prova.o. When i try to generate the executable file, by writing the command line:

powerpc-eabi-gcc -o ../../marco/prova3.out ../../c-src/prova2.c

it doesn't work. It returns me an error. considering that it's able to create correctly obj file, i think that the problem is on the linking stage. It exactly give me this error:


> powerpc-eabi-gcc -o ../../marco/prova3.out ../../c-src/prova2.c

/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/../../../../powerpc-
eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 01800074
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.te
xt+0xc4): In function `__eabi':
/users/students/tesi08/sources/build-gcc/gcc/eabi.S:232: undefined reference to
`__init'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x8):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:146: undefined refer
ence to `__SDATA_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0xc):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:148: undefined refer
ence to `__SBSS_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x14):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:150: undefined refe
rence to `__SDATA2_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x18):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:151: undefined refe
rence to `__SBSS2_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x1c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:152: undefined refe
rence to `__GOT_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x28):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:155: undefined refe
rence to `__GOT_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x2c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:156: undefined refe
rence to `__GOT2_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x30):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:157: undefined refe
rence to `__GOT2_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x34):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:158: undefined refe
rence to `__FIXUP_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x38):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:159: undefined refe
rence to `__FIXUP_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x3c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:163: undefined refe
rence to `__CTOR_LIST__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x40):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:164: undefined refe
rence to `__CTOR_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x44):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:165: undefined refe
rence to `__DTOR_LIST__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x48):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:166: undefined refe
rence to `__DTOR_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x4c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:167: undefined refe
rence to `__EXCEPT_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x50):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:171: undefined refe
rence to `__EXCEPT_END__'
collect2: ld returned 1 exit status


i wish to receive any information about this error and about the way to resolve it! thanks a lot Mignogna Alessandro




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