From: Arjan van de Ven <arjanv@redhat.com>
To: Michael Zhu <mylinuxk@yahoo.ca>, linux-kernel@vger.kernel.org
Subject: Re: Recompile the loop device
Date: Mon, 14 Jan 2002 14:15:45 +0000 [thread overview]
Message-ID: <3C42E811.309E5040@redhat.com> (raw)
In-Reply-To: <20020114140754.36133.qmail@web14902.mail.yahoo.com>
Michael Zhu wrote:
>
> Hello, has anyone recompiled the loop device? I had a
> problem when trying to load the recompiled loop.o into
> the kernel. When I use the insmod to load the loop.o,
> the system always return "loop.o: unresolved external
> __put_user_bad". What is wrong? I found that the
> __put_user_bad() was defined in the <asm/uaccess.h> as
> "extern void __put_user_bad(void);". But I couldn't
> found the source code of this function. I don't know
> why. Can I define my own __put_user_bad() function in
> my recompiled loop.c?
>
> Another question. My recompiled loop.o is about 25K.
> But I found that the loop.o in the
> "linux/drivers/block" directory is only 15K. What is
> the reason of this difference? I use the following
> command line to compile the loop.c file.
>
> gcc -D__KERNEL__ -I/home/mzhu/linux/include -Wall
> -DMODULE -DMODVERSIONS -include
> /home/mzhu/linux/include/linux/modversions.h -c loop.c
>
> Am I right? I can compile the loop.c and create the
> loop.o successfully. But I couldn't load it.
>
I think this is one of the FAQ items: you forgot -O2
prev parent reply other threads:[~2002-01-14 14:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-14 14:07 Recompile the loop device Michael Zhu
2002-01-14 14:15 ` Arjan van de Ven [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=3C42E811.309E5040@redhat.com \
--to=arjanv@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mylinuxk@yahoo.ca \
/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