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]

RE: Linking Problem..


Hi Surya,

	I think that the functions from the libgloss library are packaged on
the libnosys.a. Try to find it where you had installed the cross compiler.

	Good luck,

		Gorka Usabiaga.



-----Mensaje original-----
De: Surya Prakash [mailto:suryaprakash@multitech.co.in]
Enviado el: jueves, 04 de octubre de 2001 16:35
Para: Larry Gray
CC: crossgcc@sourceware.cygnus.com
Asunto: Re: Linking Problem..


Larry Gray wrote:

> >
/usr/local/m68k-coff/lib/crt0.o:/src/newlib-1.9.0/libgloss/m68k/crt0.S:16:
> > undefined reference to 'hardware_init_hook'
> >
/usr/local/m68k-coff/lib/crt0.o(.text+0x48):/src/newlib-1.9.0/libgloss/m68k
> >/crt0.S: undefined reference to 'software_init_hook'
> >
/usr/local/m68k-coff/lib/crt0.o(.text+0x58):/src/newlib-1.9.0/libgloss/m68k
> >/crt0.S: undefined reference to '__FINI_SECTION__'
> >
/usr/local/m68k-coff/lib/crt0.o(.text+0x5e):/src/newlib-1.9.0/libgloss/m68k
> >/crt0.S: undefined reference to 'atexit'
> >
/usr/local/m68k-coff/lib/crt0.o(.text+0x64):/src/newlib-1.9.0/libgloss/m68k
> >/crt0.S: undefined reference to '__INIT_SECTION__'
> > /tmp/ccMRkff.o(.text+0x48c):surya.c: undefined reference to 'memcpy'
> > /usr/local/lib/gcc-lib/m68k-coff/2.95.2/libgcc.a(_exit.o):In function
> > 'exit':
> > /src/gcc-2.95.2/gcc/libgcc2.c(.text+0x12): undefined reference to
> > '_cleanup'
> > /src/gcc-2.95.2/gcc/libgcc2.c(.text+0x1a): undefined reference to
'_exit'
> >
> > collect2: ld returned 1 exit status
> >
> >

> It appears your linker script does not match your crt0.o file. If calling

> from gcc use the -Wl,-T<script.ld> option. Just replace <script.ld> with
the
> name of your script. You can also specify your linker script in the gcc
specs
> file:

I tried using -Wl,-T<my linker script file>  option . Now I am getting these
new
warning and error.


/usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: ignoring invalid character
'\001' in
expression.
/usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: ignoring invalid character
'\000' in
expression.
/usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: ignoring invalid character
'\003' in
expression.
/usr/local/m68k-coff/bin/ld:/tmp/cc1JQOUV.o:1: parse error
collect2: ld returned 1 exit status.

>
>
> *link:
> -T<your linker script>%s
>
> Also in specs, verify:
>
> *lib:
> -lc -l<your libgloss library> -lc
>

I am not able to locate libgloss library under '/usr/local' where i
installed my
cross compiler.
Its there only in my source directory '/src'. Was it not installed ??

Some more help pl ...

Regard
Surya


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

------
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]