linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: error in Sparc64 build:  kallsysms modules symbol resolution
@ 2003-11-25  1:37 Leif Sawyer
  2003-11-25  3:38 ` Rusty Russell
  0 siblings, 1 reply; 3+ messages in thread
From: Leif Sawyer @ 2003-11-25  1:37 UTC (permalink / raw)
  To: rusty; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3105 bytes --]

Rusty (looks like you touched it last, does that make you the owner? :-)
et al,

I'm still receiving the following error message when compiling
for Sparc64, 2.6.0-pre10  (previously seen in -pre9)

I'm not sure if this is a dependancy error or not, since I'm still
trying to understand the build process for this portion.

It looks like scripts/kallsyms should run against .tmp_vmlinux1 to
generate symbols.S just before linking?

running kallsyms against a 2.4.22 kernel generates a file which
seems to include the correct information (that is being complained
against below)

thanks.
(Please continue to cc: me directly, as I'm not on LKML)

Leif

> $ make
> [...]
>   AS      arch/sparc64/lib/xor.o
>   AR      arch/sparc64/lib/lib.a
>   GEN     .version
>   CHK     include/linux/compile.h
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> kernel/built-in.o(.text+0x25ebc): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x25ec0): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x25f3c): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_names'
> kernel/built-in.o(.text+0x25f40): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_num_syms'
> kernel/built-in.o(.text+0x25f44): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_names'
> kernel/built-in.o(.text+0x25f48): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_num_syms'
> kernel/built-in.o(.text+0x25f54): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x25f5c): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x25fe8): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_num_syms'
> kernel/built-in.o(.text+0x25ff8): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x26048): In function `kallsyms_lookup':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x26210): In function `get_ksymbol_mod':
> : undefined reference to `kallsyms_num_syms'
> kernel/built-in.o(.text+0x26220): In function `get_ksymbol_mod':
> : undefined reference to `kallsyms_num_syms'
> kernel/built-in.o(.text+0x26270): In function `get_ksymbol_core':
> : undefined reference to `kallsyms_names'
> kernel/built-in.o(.text+0x2627c): In function `get_ksymbol_core':
> : undefined reference to `kallsyms_names'
> kernel/built-in.o(.text+0x262c0): In function `get_ksymbol_core':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x262c8): In function `get_ksymbol_core':
> : undefined reference to `kallsyms_addresses'
> kernel/built-in.o(.text+0x26350): In function `update_iter':
> : undefined reference to `kallsyms_num_syms'
> kernel/built-in.o(.text+0x26354): In function `update_iter':
> : undefined reference to `kallsyms_num_syms'
> make: *** [.tmp_vmlinux1] Error 1

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2208 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error in Sparc64 build: kallsysms modules symbol resolution
  2003-11-25  1:37 error in Sparc64 build: kallsysms modules symbol resolution Leif Sawyer
@ 2003-11-25  3:38 ` Rusty Russell
  2003-11-25  7:36   ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Russell @ 2003-11-25  3:38 UTC (permalink / raw)
  To: Leif Sawyer; +Cc: linux-kernel, davem

In message <BF9651D8732ED311A61D00105A9CA315102CD204@berkeley.gci.com> you write:
> I'm still receiving the following error message when compiling
> for Sparc64, 2.6.0-pre10  (previously seen in -pre9)

Looks like your toolchain doesn't support weak symbols.  There are
other ways of doing this, but weak symbols is the easiest.

This means no kallsyms for you, I'm afraid.

Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error in Sparc64 build: kallsysms modules symbol resolution
  2003-11-25  3:38 ` Rusty Russell
@ 2003-11-25  7:36   ` David S. Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David S. Miller @ 2003-11-25  7:36 UTC (permalink / raw)
  To: Rusty Russell; +Cc: lsawyer, linux-kernel

On Tue, 25 Nov 2003 14:38:37 +1100
Rusty Russell <rusty@rustcorp.com.au> wrote:

> In message <BF9651D8732ED311A61D00105A9CA315102CD204@berkeley.gci.com> you write:
> > I'm still receiving the following error message when compiling
> > for Sparc64, 2.6.0-pre10  (previously seen in -pre9)
> 
> Looks like your toolchain doesn't support weak symbols.  There are
> other ways of doing this, but weak symbols is the easiest.
> 
> This means no kallsyms for you, I'm afraid.

You really need to be using recent tools to build 2.6.x kernels
on sparc64.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-25  7:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25  1:37 error in Sparc64 build: kallsysms modules symbol resolution Leif Sawyer
2003-11-25  3:38 ` Rusty Russell
2003-11-25  7:36   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).