linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* start___kallsyms missing from i386 vmlinux.lds ?
@ 2001-01-02  6:56 Paul Gortmaker
  2001-01-02  7:43 ` Keith Owens
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2001-01-02  6:56 UTC (permalink / raw)
  To: kaos; +Cc: linux-kernel list

Hi,

I wasn't sure if this was overlooked or left out intentionally.

Paul.

--- linux/arch/i386/vmlinux.lds~	Fri Jul  7 03:47:07 2000
+++ linux/arch/i386/vmlinux.lds	Mon Jan  1 07:55:50 2001
@@ -26,6 +26,10 @@
   __ksymtab : { *(__ksymtab) }
   __stop___ksymtab = .;
 
+  __start___kallsyms = .;	/* All kernel symbols */
+  __kallsyms : { *(__kallsyms) }
+  __stop___kallsyms = .;
+
   _etext = .;			/* End of text section */
 
   .data : {			/* Data */

--------------78FB7F1E1ED5961B194C9718--



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
-
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/

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

* Re: start___kallsyms missing from i386 vmlinux.lds ?
  2001-01-02  6:56 start___kallsyms missing from i386 vmlinux.lds ? Paul Gortmaker
@ 2001-01-02  7:43 ` Keith Owens
  2001-01-02  9:39   ` Paul Gortmaker
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Owens @ 2001-01-02  7:43 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: linux-kernel list

On Tue, 02 Jan 2001 01:56:08 -0500, 
Paul Gortmaker <p_gortmaker@yahoo.com> wrote:
>--- linux/arch/i386/vmlinux.lds~	Fri Jul  7 03:47:07 2000
>+++ linux/arch/i386/vmlinux.lds	Mon Jan  1 07:55:50 2001
>+  __start___kallsyms = .;	/* All kernel symbols */
>+  __kallsyms : { *(__kallsyms) }
>+  __stop___kallsyms = .;

kernel/module.c defines 
extern const char __start___kallsyms[] __attribute__ ((weak));
extern const char __stop___kallsyms[] __attribute__ ((weak));

The symbols are weak and do not need to be defined.  If gcc is not
honouring __attribute__ ((weak)) then you have a broken or obsolete
version of gcc.  You need at least gcc 2.91.66 for kernel 2.4.

-
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/

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

* Re: start___kallsyms missing from i386 vmlinux.lds ?
  2001-01-02  7:43 ` Keith Owens
@ 2001-01-02  9:39   ` Paul Gortmaker
  2001-01-02 10:30     ` Keith Owens
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2001-01-02  9:39 UTC (permalink / raw)
  To: Keith Owens; +Cc: linux-kernel list

Keith Owens wrote:
> 
> On Tue, 02 Jan 2001 01:56:08 -0500,
> Paul Gortmaker <p_gortmaker@yahoo.com> wrote:
> >--- linux/arch/i386/vmlinux.lds~       Fri Jul  7 03:47:07 2000
> >+++ linux/arch/i386/vmlinux.lds        Mon Jan  1 07:55:50 2001
> >+  __start___kallsyms = .;     /* All kernel symbols */
> >+  __kallsyms : { *(__kallsyms) }
> >+  __stop___kallsyms = .;
> 
> kernel/module.c defines
> extern const char __start___kallsyms[] __attribute__ ((weak));
> extern const char __stop___kallsyms[] __attribute__ ((weak));
> 
> The symbols are weak and do not need to be defined.  If gcc is not
> honouring __attribute__ ((weak)) then you have a broken or obsolete
> version of gcc.  You need at least gcc 2.91.66 for kernel 2.4.

Yep, saw the weak part - just noted while scanning test11 diff
that they were defined like the above patch for arch/sparc* and
wondered if the inconsistency was intentional.

Thanks,
Paul.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
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/

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

* Re: start___kallsyms missing from i386 vmlinux.lds ?
  2001-01-02  9:39   ` Paul Gortmaker
@ 2001-01-02 10:30     ` Keith Owens
  2001-01-03  1:17       ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Owens @ 2001-01-02 10:30 UTC (permalink / raw)
  To: Paul Gortmaker; +Cc: linux-kernel list

On Tue, 02 Jan 2001 04:39:39 -0500, 
Paul Gortmaker <p_gortmaker@yahoo.com> wrote:
>Keith Owens wrote:
>> kernel/module.c defines
>> extern const char __start___kallsyms[] __attribute__ ((weak));
>> extern const char __stop___kallsyms[] __attribute__ ((weak));
>> 
>> The symbols are weak and do not need to be defined.  If gcc is not
>> honouring __attribute__ ((weak)) then you have a broken or obsolete
>> version of gcc.  You need at least gcc 2.91.66 for kernel 2.4.
>
>Yep, saw the weak part - just noted while scanning test11 diff
>that they were defined like the above patch for arch/sparc* and
>wondered if the inconsistency was intentional.

Some sparc users have a slightly older version of gcc, built shortly
before 'weak' support was added, which required those symbols to be
defined.  Dave Miller thought the compiler problem was widespread
enough to justify changing the source to suit the compiler instead of
forcing sparc users to upgrade.  I suspect that super-h has the same
problem of old compilers, I noticed that somebody added the symbols to
sh/vmlinux.lds.

-
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/

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

* Re: start___kallsyms missing from i386 vmlinux.lds ?
  2001-01-02 10:30     ` Keith Owens
@ 2001-01-03  1:17       ` David Woodhouse
  0 siblings, 0 replies; 5+ messages in thread
From: David Woodhouse @ 2001-01-03  1:17 UTC (permalink / raw)
  To: Keith Owens; +Cc: Paul Gortmaker, linux-kernel list

On Tue, 2 Jan 2001, Keith Owens wrote:

> Some sparc users have a slightly older version of gcc, built shortly
> before 'weak' support was added, which required those symbols to be
> defined.  Dave Miller thought the compiler problem was widespread
> enough to justify changing the source to suit the compiler instead of
> forcing sparc users to upgrade.  I suspect that super-h has the same
> problem of old compilers, I noticed that somebody added the symbols to
> sh/vmlinux.lds.

I played with weak symbols recently. Couldn't get them to work on SH or
MIPS, and gave up.

-- 
dwmw2


-
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/

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

end of thread, other threads:[~2001-01-03  1:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-02  6:56 start___kallsyms missing from i386 vmlinux.lds ? Paul Gortmaker
2001-01-02  7:43 ` Keith Owens
2001-01-02  9:39   ` Paul Gortmaker
2001-01-02 10:30     ` Keith Owens
2001-01-03  1:17       ` David Woodhouse

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).