public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Modutils 2.5 change, start running this command now
@ 2001-10-03  4:36 Keith Owens
  2001-10-03  4:48 ` Robert Love
  2001-10-03  8:17 ` Russell King
  0 siblings, 2 replies; 11+ messages in thread
From: Keith Owens @ 2001-10-03  4:36 UTC (permalink / raw)
  To: linux-kernel

In current modutils, a module that does not export symbols and does not
say EXPORT_NO_SYMBOLS defaults to exporting all symbols.  This is a
hangover from kernel 2.0 and will be removed when modutils 2.5 appears,
shortly after the kernel 2.5 branch is created.

Starting with modutils 2.5, modules must explicitly say what their
intention is for symbols.  That will break a lot of existing modules.
The command below lists the modules on your system that will be
affected.  All code maintainers need to run this against their 2.4
modules and do one of two things.  Either export the required symbols
(remember to add the .o file to export-objs in the Makefile) or add
EXPORT_NO_SYMBOLS; somewhere in the module (no change to Makefile).

 objdump -h `modprobe -l` | \
 awk '/file format/{file = $1}/__ksymtab/{file = ""}/\.comment/ && file != "" {print file}'


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Modutils 2.5 change, start running this command now
@ 2001-10-11 11:45 Keith Owens
  2001-10-12  6:34 ` Ingo Oeser
  2001-10-12 10:04 ` Benjamin LaHaise
  0 siblings, 2 replies; 11+ messages in thread
From: Keith Owens @ 2001-10-11 11:45 UTC (permalink / raw)
  To: linux-kernel

Repeat for anybody who ignored this request the first time.

In current modutils, a module that does not export symbols and does not
say EXPORT_NO_SYMBOLS will default to exporting all symbols.  This is a
hangover from kernel 2.0 and will be removed when modutils 2.5 appears,
shortly after the kernel 2.5 branch is created.

Starting with modutils 2.5, modules must explicitly say what their
intention is for symbols.  That will break a lot of existing modules.

The command below lists the modules that are compiled on your system
and will be affected.  All code maintainers need to run this against
their 2.4 modules and do one of two things.  Either export the required
symbols (remember to add the .o file to export-objs in the Makefile) or
add EXPORT_NO_SYMBOLS; somewhere in the module (no change to Makefile).

objdump -h `modprobe -l` | sed -ne '/__ksym/h;$b1;\:^/:!d;:1;x;s/:.*//p;'


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

end of thread, other threads:[~2001-10-12 15:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-03  4:36 Modutils 2.5 change, start running this command now Keith Owens
2001-10-03  4:48 ` Robert Love
2001-10-03  8:17 ` Russell King
2001-10-03 11:59   ` Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2001-10-11 11:45 Keith Owens
2001-10-12  6:34 ` Ingo Oeser
2001-10-12 10:04 ` Benjamin LaHaise
2001-10-12 11:37   ` Keith Owens
2001-10-12 12:14     ` David Woodhouse
2001-10-12 14:40       ` Keith Owens
2001-10-12 15:01       ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox