mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Samuelson <peter@cadcamlab.org>
To: "Herrmann, Achim" <AHerrmann@heiler.com>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: modules, insmod and multiple object files
Date: Tue, 16 Jan 2001 06:04:49 -0600	[thread overview]
Message-ID: <20010116060449.B12650@cadcamlab.org> (raw)
In-Reply-To: <C113A60DF3FFD3118B9A00508BA8F54205DC88@hskomm02.heiler.com>
In-Reply-To: <C113A60DF3FFD3118B9A00508BA8F54205DC88@hskomm02.heiler.com>; from AHerrmann@heiler.com on Tue, Jan 16, 2001 at 12:56:33PM +0100


[Achim Herrmann]
> main.o was created using language "C": gcc -c main.c -o main.o
> and 
> hwaccess.o was created using assembler: nasm -f elf hwaccess.asm -o
> hwaccess.o
> 
> Is there a possibility to combine these two object files, so that I
> have a module which is loadable by insmod?

I'm not very familiar with 'nasm', but assuming it produces regular elf
object files:

  $(LD) -r -o {target}.o main.o hwaccess.o

'$(LD) -r' is used lots of places in kernel makefiles already.  (Too
many places, actually, most of which could and should be automated.
Kai Germaschewski has recently done some work to this end.)

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2001-01-16 12:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-16 11:56 Herrmann, Achim
2001-01-16 12:04 ` Peter Samuelson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010116060449.B12650@cadcamlab.org \
    --to=peter@cadcamlab.org \
    --cc=AHerrmann@heiler.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®