Re: [PATCH] Remove unneeded symbols from System.map

From: Keith Owens (kaos@ocs.com.au)
Date: Sat Sep 23 2000 - 19:09:28 EDT

  • Next message: Nathan Neulinger: "Re: FW: cdrecord and 'invalid field in parameter list' error"

    On Sat, 23 Sep 2000 20:08:25 +0200,
    Daniel Phillips <news-innominate.list.linux.kernel@innominate.de> wrote:
    >Keith Owens wrote:
    >> Please do not apply. The size of System.map is almost irrelevant.
    >> Having the __kstrtab_ and __ksymtab_ symbols in the map helps when
    >> debugging EXPORT_SYMBOL problems. I expect that other people find the
    >> __device entries to be useful.
    >
    >Hmmm, this couldn't be the same Keith Owens who claimed that
    >System.map is too large to be zipped and appended to bzImage could it?

    The size is irrelevant as long as the System.map is separate. Adding
    System.map to bzImage changes the criteria for what is "too big".

    BTW, modutils 2.3.17 fixes a bug in depmod -F System.map. It used to
    extract all global symbols from the map, now it only extracts symbols
    that are exported, global or static. And it needs __kstrtab_ to do it
    correctly. Removing __kstrtab_ would break modutils 2.3.17.

    > $(NM) vmlinux | grep -v -f scripts/System.map-filter | sort >System.map
    >
    >just a little bit more readable than:
    >
    > $(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\([aU]\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
    >
    >More flexible too.

    I don't object to moving the exclude list to a scripts file, but
    excluding symbols that people use is wrong.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:14:23 EDT