gcc, linking *.o files together (maybe OT)

From: Daniel Schüle (uval_at_rz.uni-karlsruhe.de)
Date: 05/22/04

  • Next message: David Schwartz: "Re: gcc, linking *.o files together (maybe OT)"
    Date: Sat, 22 May 2004 03:35:12 +0200
    
    

    Hi all

    maybe this is OT here, but i try it anyway
    i dont know what would be the right place to ask this

    i divided my module code in different source files
    lets call them a.c b.c

    i can create the according *.o files with
    gcc -c a.c b.c

    but thats not what i need
    i need a single file "all.o" to be able to
    insmod all.o
    into my kernel

    gcc -o all.o a.o b.o
    doesnt do this, since it pass (i suppose) *.o files
    to the linker, which on his part looks for __main or start or whatever

    can someone tell me what the proper options are?
    gcc -v
    3.3.1
    uname -r
    2.4.21-99

    thx

    --
    Daniel
    

  • Next message: David Schwartz: "Re: gcc, linking *.o files together (maybe OT)"

    Relevant Pages