* Re: Hi Andrew
@ 2010-04-14 7:08 Fabio Giovagnini
2010-04-14 7:30 ` Andrew Stubbs
2010-04-14 8:22 ` Fabio Giovagnini
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Giovagnini @ 2010-04-14 7:08 UTC (permalink / raw)
To: linux-sh
Ok. so the Makefile for zImage needs to be modified to use the libc functions
embedded into the kernel source tree. Is it right?
If yes, how is it possible to have a general coccect behaviour?
Regards
In data martedì 13 aprile 2010 22:24:16, Andrew Stubbs ha scritto:
: > On 13/04/10 20:50, Fabio Giovagnini wrote:
> > What do Poal and others thinks about this?
> > Did you talk to them about?
>
> Paul said so himself, here:
>
> http://article.gmane.org/gmane.linux.ports.sh.devel/7776
>
> Andrew
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Hi Andrew
2010-04-14 7:08 Hi Andrew Fabio Giovagnini
@ 2010-04-14 7:30 ` Andrew Stubbs
2010-04-14 8:22 ` Fabio Giovagnini
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Stubbs @ 2010-04-14 7:30 UTC (permalink / raw)
To: linux-sh
On 14/04/10 08:08, Fabio Giovagnini wrote:
> Ok. so the Makefile for zImage needs to be modified to use the libc functions
> embedded into the kernel source tree. Is it right?
> If yes, how is it possible to have a general coccect behaviour?
I'm sorry, I'm not sure I understand the question.
Yes, the makefile needs to be modified to remove the dependency on
libgcc. This was done for the kernel itself a few versions ago. It means
that the toolchain does not need any special configuration to build the
kernel, in cases like this where the usermode compiler is incompatible
with the kernel.
If you're asking how to do the modification, I don't know. I'm not a
kernel hacker.
If you're asking how any hypothetical project should handle this, then
the answer is that they should rely on the toolchain, and not have to
worry about it. The kernel is special - it is traditionally compiled
with a toolchain unsuitable for building bare-metal programs. It is
desirable that the same compiler is used for user mode, and for the
kernel, because having a whole separate toolchain would be a lot of
wasted effort, but it means that the kernel makefiles have to work hard
to reconfigure the tools using custom parameters, linker scripts and
overriding compiler built-ins.
Is that the answer to the question you were asking?
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Hi Andrew
2010-04-14 7:08 Hi Andrew Fabio Giovagnini
2010-04-14 7:30 ` Andrew Stubbs
@ 2010-04-14 8:22 ` Fabio Giovagnini
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Giovagnini @ 2010-04-14 8:22 UTC (permalink / raw)
To: linux-sh
You undestood exactly!!!
Your answer make very clear all the aspects of the problem
Thanks a lot
In data mercoledì 14 aprile 2010 09:30:51, Andrew Stubbs ha scritto:
: > On 14/04/10 08:08, Fabio Giovagnini wrote:
> > Ok. so the Makefile for zImage needs to be modified to use the libc
> > functions embedded into the kernel source tree. Is it right?
> > If yes, how is it possible to have a general coccect behaviour?
>
> I'm sorry, I'm not sure I understand the question.
>
> Yes, the makefile needs to be modified to remove the dependency on
> libgcc. This was done for the kernel itself a few versions ago. It means
> that the toolchain does not need any special configuration to build the
> kernel, in cases like this where the usermode compiler is incompatible
> with the kernel.
>
> If you're asking how to do the modification, I don't know. I'm not a
> kernel hacker.
>
> If you're asking how any hypothetical project should handle this, then
> the answer is that they should rely on the toolchain, and not have to
> worry about it. The kernel is special - it is traditionally compiled
> with a toolchain unsuitable for building bare-metal programs. It is
> desirable that the same compiler is used for user mode, and for the
> kernel, because having a whole separate toolchain would be a lot of
> wasted effort, but it means that the kernel makefiles have to work hard
> to reconfigure the tools using custom parameters, linker scripts and
> overriding compiler built-ins.
>
> Is that the answer to the question you were asking?
>
> Andrew
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-14 8:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14 7:08 Hi Andrew Fabio Giovagnini
2010-04-14 7:30 ` Andrew Stubbs
2010-04-14 8:22 ` Fabio Giovagnini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox