building multiple modules and Mudule.symvers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  i just noticed something about building multiple modules i never
realized before, and want to verify that it's actually a feature.

  if i build a single module that refers to something that will be
available in the kernel address space when that module is loaded, i'll
get an "undefined reference" warning during the build, but the module
will still build, of course, since that reference won't be satisfied
until the module is loaded.

  however, if i'm building two modules in the same directory, and one
of them defines that symbol and EXPORTs it, then i don't get the
warning when the other module is being built since, as i read it, the
build process is collecting symbols in Module.symvers that it uses to
check references.

  note that, even if i build two modules using the same Makefile,
there's nothing to say they're even *remotely* related, but the build
process appears to collect exported symbols just in case and uses that
information to deal with potential warnings.

  is that deliberate?  it's not like it's a big deal, and doesn't
affect the final build in any way, i had just never noticed that
before.

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux