Re: [PATCH] a more efficient BUG() macro

From: Manfred Spraul (manfred@colorfullife.com)
Date: Sat Feb 17 2001 - 07:26:52 EST

  • Next message: Igor Yanover: "More on IO-APIC trouble"

    Paul Gortmaker wrote:
    >
    > Anyway this small patch makes sure there is only one "kernel BUG..." string,
    > and dumps __FILE__ in favour of an address value since System.map data is
    > needed to make full use of the BUG() dump anyways. The memory stats of two
    > otherwise identical kernels:
    >

    Shouldn't the linker drop duplicate strings?

    info gcc mentions that gcc merges duplicate strings, but it seems that
    it doesn't work (gcc-2.96-69, binutils-2.10.0.18-1).

    --
    	Manfred
    -
    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/
    



    This archive was generated by hypermail 2b29 : Sat Feb 17 2001 - 07:28:47 EST