* EXPORT_SYMTAB, or Is "this_object_must_be_defined_as_export_objs_in_the_Makefile" annoying to anyone?
@ 2002-06-25 23:16 Calin A. Culianu
2002-06-26 1:31 ` Keith Owens
0 siblings, 1 reply; 2+ messages in thread
From: Calin A. Culianu @ 2002-06-25 23:16 UTC (permalink / raw)
To: linux-kernel
I am not sure for the reasoning behind it, but it seems that newer 2.4
kernels require the additional -DEXPORT_SYMTAB be defined for any code one
wants to build as a module (if that module exports symbols). Needless to
say this breaks a lot of (non-kernel-tree) modules that would otherwise
have been compiling without problems.
What is the rationale behind this?
-Calin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: EXPORT_SYMTAB, or Is "this_object_must_be_defined_as_export_objs_in_the_Makefile" annoying to anyone?
2002-06-25 23:16 EXPORT_SYMTAB, or Is "this_object_must_be_defined_as_export_objs_in_the_Makefile" annoying to anyone? Calin A. Culianu
@ 2002-06-26 1:31 ` Keith Owens
0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2002-06-26 1:31 UTC (permalink / raw)
To: Calin A. Culianu; +Cc: linux-kernel
On Tue, 25 Jun 2002 19:16:58 -0400 (EDT),
"Calin A. Culianu" <calin@ajvar.org> wrote:
>I am not sure for the reasoning behind it, but it seems that newer 2.4
>kernels require the additional -DEXPORT_SYMTAB be defined for any code one
>wants to build as a module (if that module exports symbols). Needless to
>say this breaks a lot of (non-kernel-tree) modules that would otherwise
>have been compiling without problems.
>
>What is the rationale behind this?
Any code that exports symbols must be compiled with -DEXPORT_SYMTAB.
That flag is used in module symbol version processing to generate the
versioned symbols.
It used to be that omitting -DEXPORT_SYMTAB would only cause an error
when CONFIG_MODVERSIONS=y. Since most developers did not use
modversions, entries were being added to the kernel tree without
correct makefile definitions. To ensure correct definitions in the
makefile for all circumstances, the code was changed to always require
-DEXPORT_SYMTAB for exporting objects, with or without
CONFIG_MODVERSIONS.
Bottom line: if you export symbols you must always define -DEXPORT_SYMTAB.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-26 1:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-25 23:16 EXPORT_SYMTAB, or Is "this_object_must_be_defined_as_export_objs_in_the_Makefile" annoying to anyone? Calin A. Culianu
2002-06-26 1:31 ` Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox