From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Giovagnini Date: Fri, 19 Mar 2010 11:47:45 +0000 Subject: Re: Complining with codesurgery 4.4.-43 sh2a Message-Id: <201003191247.45349.fabio.giovagnini@aurion-tech.com> List-Id: References: <201003191201.24090.fabio.giovagnini@aurion-tech.com> In-Reply-To: <201003191201.24090.fabio.giovagnini@aurion-tech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-sh@vger.kernel.org In fact I used the toolchain for building the binary file including the=20 bootstrap code and the zImage of the kernel;and this told me the prolem=20 beacuse in my own makefile I had -m2a only option set. Do I have to skip the fpu when I'll build the usersapce application? Thanks a lot Paul In data venerd=EC 19 marzo 2010 12:27:35, Paul Mundt ha scritto: : > On Fri, Mar 19, 2010 at 12:01:23PM +0100, Fabio Giovagnini wrote: > > Hi all, why I need to compile my code with -m2a -m2a-nofpu aven if sh2a > > 76203 has an fpu? > > If I do not use -m2a-nofpu I have error > > undefined reference to `__fpscr_values' > > at linking time >=20 > You should never be touching any of the Makefile build flags, they are > delicate, have rigid ordering requirements, and are mapped out the way > they are intentionally. Any time you are forced to hack up build flags > you are almost guaranteed to be doing something wrong. >=20 > Whether the CPU has an FPU or not is completely irrelevant from the > context of the kernel. The kernel does not have its own FP state, and so > can't handle having FP instructions generated by the compiler, this is > what the -nofpu inhibiting is for. Even in situations where the kernel > may wish to hand craft FP context and open code a few instructions, the > kernel is never built without -nofpu. > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >=20 --=20 Fabio Giovagnini Aurion s.r.l. P.I e C.F. 00885711200 Tel. +39.051.594.78.24 Cell. +39.335.83.50.919