OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Chris Wright (chriswirex.com)
Date: Mon Oct 08 2001 - 13:42:25 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    * Luciano Miguel Ferreira Rocha (strangensk.yi.org) wrote:
    >
    > You can't compile a kernel or kernel modules on an Immunix System. It
    > results in unresolved symbols relating to the StackGuard and others mechanism.

    this is not exactly accurate Luciano.

    you CAN compile a kernel or kernel modules on an Immunix System
    absolutely fine (I do it nearly every day ;-). There is an issue with the
    StackGuard compiler[1], however it does _not_ disable you from compiling
    kernel code. You simply must include the proper CFLAG to disable StackGuard
    during kernel code compilation.

    The kernel packages shipped with Immunix have patched Makefiles to
    disable StackGuard. If the code you are compiling is a patch to the
    kernel (and builds from the kernel make system) then you have nothing to
    worry about. If it compiles standalone from its own Makefile, then you
    must make sure you disable StackGuard yourself.

    If you are downloading a new kernel, you must simply patch the Makefiles
    youself...see the canary-2.2.18.patch file shipped in the extras/
    directory of Immunix 7.0 (or on our website
    http://download.immunix.org/ImmunixOS/7.0/i386/extras).

    >
    > You may compile the kernel and/or the modules in a non-Immunix system and
    > then use them in an Immunix system without any trouble, or try to compile
    > the modules with the argument -fno-canary-all-functions to gcc.

    If you are using Immunix >= 6.2 (or more specifically using the
    egcs-2.91.66-StackGuard compiler) the flag to disable StackGuard
    is -mno-terminator-canary (the -fno-canary-all-functions is older).

    thanks,
    -chris

    [1] You will get unresolved symbols _only_ related to the canary_death_handler.

    _______________________________________________
    Immunix-users mailing list
    Immunix-usersmail.wirex.com
    http://mail.wirex.com/mailman/listinfo/immunix-users