Re: SGI XFS on ppc

3 messages, 3 authors, 2000-07-31 · open the first message on its own page

Re: SGI XFS on ppc

From: Keith Owens <hidden>
Date: 2000-07-31 06:34:17

On 31 Jul 2000 06:12:29 GMT,
Thomas Graichen [off-list ref] wrote:
Keith Owens [off-list ref] wrote:
quoted
More specific please.  kallsyms has no ifdefs.  It should only be
included if you select kdb but kdb has not been ported to ppc.  I
maintain modutils, kallsyms and kdb.
just have a look at the diff at

 http://innominate.org/~graichen/projects/xfs-ppc/
I can see the problem but need some ppc help in fixing it.  Part of the
kallsyms patch updates arch/xxx/vmlinux.lds on every arch.  I did not
patch arch/ppc/vmlinux.lds because it did not have any entries for
section __ksymtab.  kallsyms is module related and the absence of
__ksymtab in arch/ppc/vmlinux.lds made me think that ppc does not use
modules.

Does ppc support modules?  I know that modutils has an obj-ppc.c file
but I don't think I have ever seen any ppc bug reports for modutils.
If ppc does use modutils then we need lines like this in
arch/ppc/vmlinux.lds.

  __start___ksymtab = .;        /* Kernel symbol table */
  __ksymtab : { *(__ksymtab) }
  __stop___ksymtab = .;

  __start___kallsyms = .;       /* All kernel symbols */
  __kallsyms : { *(__kallsyms) }
  __stop___kallsyms = .;

The first section is standard for any arch that supports modules but is
not in pppc for some reason.  The second section is part of kallsyms.
Most of the kallsyms code needs to be wrapped in #ifdef but
arch/xxx/vmlinux.lds, include/modules.h and kernel/module.c do not,
they are global to provide a standard userspace ABI, independent of
kernel options.

If ppc does not support modules then forget the above update.  However
the code in kernel/module.c that refers to kallsyms entries should not
be compiled when CONFIG_MODULES=n is set, why is it being compiled?


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: SGI XFS on ppc

From: Thomas Graichen <hidden>
Date: 2000-07-31 06:48:41

On Mon, 31 Jul 2000, Keith Owens wrote:
Does ppc support modules?  I know that modutils has an obj-ppc.c file
but I don't think I have ever seen any ppc bug reports for modutils.
If ppc does use modutils then we need lines like this in
arch/ppc/vmlinux.lds.

  __start___ksymtab = .;        /* Kernel symbol table */
  __ksymtab : { *(__ksymtab) }
  __stop___ksymtab = .;

  __start___kallsyms = .;       /* All kernel symbols */
  __kallsyms : { *(__kallsyms) }
  __stop___kallsyms = .;

The first section is standard for any arch that supports modules but is
not in pppc for some reason.  The second section is part of kallsyms.
Most of the kallsyms code needs to be wrapped in #ifdef but
arch/xxx/vmlinux.lds, include/modules.h and kernel/module.c do not,
they are global to provide a standard userspace ABI, independent of
kernel options.
i think this is something for the ppc guys ...
If ppc does not support modules then forget the above update.  However
the code in kernel/module.c that refers to kallsyms entries should not
be compiled when CONFIG_MODULES=n is set, why is it being compiled?
maybe due to the "||" (kernel/modules.c) ?

#if defined(CONFIG_MODULES) || defined(CONFIG_KALLSYMS)

t

--
thomas.graichen@innominate.de
technical director                                       innominate AG
clustering & security                                networking people
fon: +49.30.308806-13 fax: -77 web: http://innominate.de pgp: /pgp/tgr


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: SGI XFS on ppc

From: Michel D�nzer <hidden>
Date: 2000-07-31 08:02:37

Keith Owens wrote:
Does ppc support modules?
Yes.

I know that modutils has an obj-ppc.c file but I don't think I have ever
seen any ppc bug reports for modutils.
Maybe because it works fine? :)

If ppc does use modutils then we need lines like this in
arch/ppc/vmlinux.lds.
Can't comment on this.


Michel


--
Apologies are so hard to give. Would you accept some potatoes instead?
______________________________________________________________________________
Earthling Michel Dänzer (MrCooper)  \  CS student and free software enthusiast
Debian GNU/Linux (powerpc,i386) user \   member of XFree86, Team *AMIGA*, AUGS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help