Re: How printf output messages to kernel with uclibc lib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 01 February 2009 15:21, loody wrote:
> When receiving your reply, I try the suggestion you give to me.
> And it shows:
>     No relocations in code!
> (attach the log at the end of letter)

Aha finally we see some real bits of data!

> so I guess maybe I need to include some header.
> 
> Then I try to check whether the function you mention comes from kernel
> sys calls, since in the letter there is a key word, syscalls.
> And as far as I know, these functions are passed by SWI interrupt,
> which implemented in arch/xx/kernel.
> That's the reason why I include linux-arm-kernel mailing list, sorry.
> 
> As you say, I am really unfamiliar with the interface between c lib and kernel.

Unfortunately, yes. You took the wrong turn here.
Compile went fine it seems. Either the link step seems to wrong,
or conversion to flat format... let me grep...

> If my stupid questions annoyed you, please forgive me,
> thanks for your help,

It's not that they annoy me. The point is, it is very inefficient
to get edicated by asking help on mailing list. There are many
good resources which will help you much faster. Use google.

> make[1]: Entering directory `/uClinux-dist/user'
> touch hello/.sgbuilt_user && make -j1 -C hello
> make[2]: Entering directory `/uClinux-dist/user/hello'
> ucfront-gcc arm-linux-gcc  -Os                     -g -pipe
> -msoft-float -fno-common -fno-builtin -Wall   -DEMBED -D__PIC__ -fpic
> -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__   -c -o
> hello.o hello.c
> hello.c: In function `main':
> hello.c:3: warning: implicit declaration of function `write'
> ucfront-gcc arm-linux-gcc  -Wl,-elf2flt -msoft-float -D__PIC__ -fpic
> -msingle-pic-base -o hello hello.o
> No relocations in code!
> make[2]: Leaving directory `/uClinux-dist/user/hello'
> make[1]: Leaving directory `/uClinux-dist/user'

This message is in elf2flt utility:

# grep 'No relocations in code' /usr/bin/*
bfin-linux-uclibc-elf2flt:No relocations in code!, relocs=0x%04xCan't open output file %s
bfin-uclinux-elf2flt:No relocations in code!, relocs=0x%04xCan't open output file %s

This is a problem of your toolchain been broken.
--
vda

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux