Re: Undefined symbols in 2.6.11-rc5-mm1

From: Adrian Bunk (bunk_at_stusta.de)
Date: 03/05/05

  • Next message: Pierre Ossman: "Re: [PATCH][MMC] Secure Digital (SD) support"
    Date:	Sat, 5 Mar 2005 14:04:16 +0100
    To: Kai Germaschewski <kai.germaschewski@unh.edu>
    
    

    On Sat, Mar 05, 2005 at 12:09:29AM -0500, Kai Germaschewski wrote:
    > On Fri, 4 Mar 2005, Adrian Bunk wrote:
    >
    > > > [...] So ld looks into the lib .a archive, determines that none of
    > > > the symbols in that object file are needed to resolve a reference and
    > > > drops the entire .o file.
    >
    > > Silly question:
    > > What's the advantage of lib-y compared to obj-y?
    >
    > Basically exactly what I quoted above -- unused object files don't get
    > linked into the kernel image and don't take up (wasted) space. On the
    > other hand, files in obj-y get linked into the kernel unconditionally.

    And this can break as soon as the "unused" object files contains
    EXPORT_SYMBOL's.

    Is it really worth it doing it in this non-intuitive way?
    I'd prefer an explicite dependency on a variable if you want to
    compile library functions conditionally.

    > --Kai

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Pierre Ossman: "Re: [PATCH][MMC] Secure Digital (SD) support"

    Relevant Pages

    • Re: Hard freeze with 2.6.10-rc3 and QoS, worked fine with 2.6.9
      ... any kernel image by script so we can easly test all changes to iproute2 ... I'm not quite sure which versions of iproute2 are being used by the ... the test script has written anything to stderr. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Inspiron 6000 / ACPI S3 / PCI-X problems?
      ... inspiron 6000. ... Turns out the PCI config for the card gets trashed: ... using xorg and kernel image 2.6.11.93-1.1 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • kernel image reproducibility...
      ... kernel image months or years from now on a different system, ... David Airlie, Software Engineer ... pam_smb / Linux DECstation / Linux VAX / ILUG person ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Force UNIX domain sockets to be built in
      ... and fails to run if UNIX=m. ... I decided against making it a bool because embedded ... changing it to a bool will allow us to make the kernel image ... There had been need of rain for many days. ...
      (Linux-Kernel)
    • Re: Why INSTALL_PATH is not /boot by default?
      ... On Sun, 21 Nov 2004, Andreas Steinmetz wrote: ... >> installkernel. ... in that case wouldn't you just copy the kernel image from the source ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)