public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Trouble using sprintf from newlib
@ 2004-11-10  9:07 Despina
  0 siblings, 0 replies; only message in thread
From: Despina @ 2004-11-10  9:07 UTC (permalink / raw)
  To: gcc-help

Hi all,

I have compiled newlib in the relocatable mode (with -fPIC and
-msep_data) now I would like to use some functions from this library in
a program dedicated to a coldfire 5407.

The problem is that when linking I get the following messages :

m68k-elf-gcc -Wall -m5407 -g -fPIC -msep-data -c -Wa,-alh,-L
helloWorld.c > hell
oWorld.c.lst
m68k-elf-ld helloWorld.o -o helloWorld-frr.abs  -T
/usr/local/m68k-elf/star-flas
h-ram-ram.ld -Map helloWorld-frr.map
helloWorld.o(.text+0x12): In function `main':
/usr/steph/CSample/helloWorld.c:62: relocation truncated to fit:
R_68K_GOT16O .L
C0
/usr/local/m68k-elf/lib/m5407/libc.a(sprintf.o)(.text+0x8c): In function
`sprint
f':
../../../../../../newlib/libc/stdio/sprintf.c:375: relocation truncated
to fit:
R_68K_GOT16O _impure_ptr
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x324): In
function `_vfp
rintf_r':
../../../../../../newlib/libc/stdio/vfprintf.c:1061: relocation
truncated to fit
: R_68K_GOT16O .LC5
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x36c):../../../.
./../../
newlib/libc/stdio/vfprintf.c:1114: relocation truncated to fit:
R_68K_GOT16O bla
nks.0
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x410):../../../.
./../../
newlib/libc/stdio/vfprintf.c:1130: relocation truncated to fit:
R_68K_GOT16O zer
oes.1
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x4ae):../../../.
./../../
newlib/libc/stdio/vfprintf.c:1183: relocation truncated to fit:
R_68K_GOT16O bla
$
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x688):../../../.
./../../
newlib/libc/stdio/vfprintf.c:1127: relocation truncated to fit:
R_68K_GOT16O zer
oes.1
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x79a):../../../.
./../../
newlib/libc/stdio/vfprintf.c:1160: relocation truncated to fit:
R_68K_GOT16O .LC
7
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x87c):../../../.
./../../
newlib/libc/stdio/vfprintf.c:1140: relocation truncated to fit:
R_68K_GOT16O .LC
6
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0x8ee):../../../.
./../../
newlib/libc/stdio/vfprintf.c:1143: relocation truncated to fit:
R_68K_GOT16O zer
oes.1
/usr/local/m68k-elf/lib/m5407/libc.a(vfprintf.o)(.text+0xa30):../../../.
./../../
newlib/libc/stdio/vfprintf.c:916: additional relocation overflows
omitted from t
he output
/usr/local/m68k-elf/lib/m5407/libmp300.a(sbrk.o)(.data.rel+0x0):
undefined refer
ence to `_heap_start'
make: *** [helloWorld-frr.abs] Error 1


So the application will not compile. 

Do you have any idea where such messages could come from?

Many thanks for advance.


Cheers, 

Despina


___[ Pub ]____________________________________________________________
Inscrivez-vous gratuitement sur Tandaime, Le site de rencontres !
http://rencontre.rencontres.com/index.php?origine=4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-10  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-10  9:07 Trouble using sprintf from newlib Despina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).