EXPORT_SYMS
Ruslan Ermilov
ru at freebsd.org
Tue Jun 22 15:44:01 GMT 2004
On Tue, Jun 22, 2004 at 05:36:23PM +0600, ngl wrote:
> In KLD module makefile i can specify
> EXPORT_SYMS= name1, name2, ...
> What does it mean ?
>
According to sys/conf/kmod.mk:
# EXPORT_SYMS A list of symbols that should be exported from the module,
# or the name of a file containing a list of symbols, or YES
# to export all symbols. If not defined, no symbols are
# exported.
This is used to avoid possible name conflicts between different modules.
All symbols that aren't exported (none are exported by default) will be
made local by objcopy(1). In the past, two different modules could define
a common global name, and resolution of a name could give unpredictable
results, often resulting in a panic.
Note: if module A depends on symbol S from module B, and the dependency
of A on B is recorded, S should *not* be global.
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-standards/attachments/20040622/8152c2f3/attachment.bin
More information about the freebsd-standards
mailing list