From: Alex Chiang <achiang@hp.com>
To: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
Tony Luck <tony.luck@gmail.com>,
James.Bottomley@suse.de,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] modpost: fix modules on ia64 - use @fptr() on exported function symbols
Date: Mon, 23 Nov 2009 16:25:20 -0700 [thread overview]
Message-ID: <20091123232520.GA18976@ldl.fc.hp.com> (raw)
In-Reply-To: <4B0B10FA.7030402@tuffmail.co.uk>
* Alan Jenkins <alan-jenkins@tuffmail.co.uk>:
> On function descriptor architectures (powerpc and ia64), we need to export
> the address of the function descriptor and not the actual function.
> The C compiler naturally does this for us. However we now export vmlinux
> symbols using the assembler, in order to sort the exports.
>
> This is not a problem on powerpc. On powerpc, the function descriptor
> is simply "printk" (the action function entry point is ".printk").
> But ia64 assembly needs special handling. The function descriptor for
> printk(), for example, is "@fptr(printk)".
>
> I have tested that modpost now generates the desired assembly code when
> run against an IA64 module. I have not tested with an actual IA64
> vmlinux, assembler, compiler or processor. I assume that the IA64
> assembler defines __ia64__, just as the i386 assembler defines __i386__.
>
> Reported-by: Alex Chiang <achiang@hp.com>
I applied this patch to a tree that had 20ba8ef1de7e77e4c
(kbuild: sort the list of symbols exported by the kernel
(__ksymtab)) as a HEAD.
Without the patch, I get a panic. With the patch, boot succeeds.
I also applied this patch on top of 9d5bf6fad2 (Add linux-next
specific files for 20091123), and verified that boot also
succeeds.
So for ia64, you can add my:
Tested-by: Alex Chiang <achiang@hp.com>
However, I've cc'ed James Bottomley who is currently testing
parisc. parsic is another function descriptor architecture, and
due to your very specific #ifdef __ia64__ in the patch, it
clearly won't fix parisc (if indeed it is broken).
James mentioned something about needing an fptr arch symbol, but
I'll let him expand on his idea.
Thanks,
/ac
prev parent reply other threads:[~2009-11-23 23:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-23 22:47 [PATCH] modpost: fix modules on ia64 - use @fptr() on exported function symbols Alan Jenkins
2009-11-23 23:25 ` Alex Chiang [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=20091123232520.GA18976@ldl.fc.hp.com \
--to=achiang@hp.com \
--cc=James.Bottomley@suse.de \
--cc=alan-jenkins@tuffmail.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=tony.luck@gmail.com \
/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