stupid newbie question

Ken Moffat ken at kenmoffat.uklinux.net
Sat Jul 30 13:03:37 PDT 2005


On Sat, 30 Jul 2005, Jaap Struyk wrote:

> Op za 30-07-2005, om 17:19 schreef Jaap Struyk:
>
> > What the 2 have in common is:
> > asm operand 1 probably doesn't match constraints
> > and
> > impossible constraint in `asm'
> > Both modules build fine on a clean kernel, but the errors don't make
> > sence to me.
>
> Buth they do now, maybe I reacted a bit to quikcly (sorry) but the
> answer is something wrong in the book. (or missing)
> The kernel is compiled with:
> make CC="gcc -no-pie -fno-stack-protector-all"
> but according to the hlfs book modules are build and installed with:
> make modules_install
> This seemed odd, if the kernel needs those options the modules probebly
> want them too, so I added CC="gcc -no-pie -fno-stack-protector-all" to
> the build off both ivtv and nvidia and they compiled without a glitch...
> Maybe something off value to add to the book.
>

 For in-kernel modules in 2.6, they are actually built during 'make',
the modules_install target only installs them.  Therefore, the switches
_do_ get used when the module is built.

 External modules are obviously different (they can't be built when the
kernel is built), and the book needs to point out what you've reported.

/me suppresses the thought that proprietary modules and hardened systems
may not go together well.

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce




More information about the hlfs-dev mailing list