Installing KLD modules on AMD64

Edwin Groothuis edwin at mavetju.org
Sun Sep 9 16:07:13 PDT 2007


FYI:

According to ports/100703 and ports/115517, the macro INSTALL_PROGRAM
corrupts .ko files on AMD64 machines:

    You cannot strip kernel modules on amd64, because modules are
    elf object files, as opposed to shared objects on all other
    archs. Strip strips the object file symbol table, that is used
    by the static linker and in-kernel linker on amd64. On the other
    hand, shared object contains also a dynamic symbol table, that
    is not stripped and used by in-kernel linker on !amd64.

To overcome this problem I have submitted ports/116200 which adds
the INSTALL_KLD command which can be used to properly install .ko
files without the fear of them being stripped.

Edwin
-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |              Weblog: http://www.mavetju.org/weblog/


More information about the freebsd-ports mailing list