From: Godmar Back <godmar@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] question regarding global symbols & namespace.pl script
Date: Tue, 01 Feb 2005 18:43:35 +0000 [thread overview]
Message-ID: <719dced3050201104324e53747@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1665 bytes --]
Hi,
I have a very basic question regarding global symbols.
Does the Linux kernel build system provide each kernel module with its own
namespace for global symbols?
For instance, Keith Owens points out in an old email that "there are
guaranteed to
be conflicts on static and global but unexported symbols" (within one module:
http://www.ussg.iu.edu/hypermail/linux/kernel/9909.0/0433.html), which seems
to imply that only exported symbols of a module are entered into the global
namespace and that programmers can use global symbols to communicate
across .o files with a module freely.
However, if a given subsystem is not built as a module, but rather
using the 'y'
option builtin to the kernel, how does the linker know how to respect
these per-module
namespaces?
Or is it possible that - depending on the configuration - a global symbol might
cause a doubly-defined error in one (non-module) build configuration,
but not when
built as a module?
I tried the namespace.pl script Keith wrote, however, I'm getting numerous
messages such as this one when running namespace.pl in the Linux
kernel top-level dir:
No source file found for arch/i386/kernel/process.o
...
despite the fact that arch/i386/kernel/process.c exists.
Could this be due to tool incompatibilities?
For instance, objdump -s -j .comment shows:
arch/i386/kernel/process.o: file format elf32-i386
Contents of section .comment:
0000 00474343 3a202847 4e552920 332e3100 .GCC: (GNU) 3.1.
whereas namespace.pl seems to expect:
/GCC\:.*GCC\:/m
(?)
Note this is on a 2.6.8.1 kernel build.
I would be helpful for any answers, particularly to my first question.
Thanks!
- Godmar
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
next reply other threads:[~2005-02-01 18:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-01 18:43 Godmar Back [this message]
2005-02-01 19:37 ` [KJ] question regarding global symbols & namespace.pl script maximilian attems
2005-02-01 22:41 ` Randy.Dunlap
2005-02-01 23:09 ` Godmar Back
2005-02-02 0:04 ` Godmar Back
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=719dced3050201104324e53747@mail.gmail.com \
--to=godmar@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.