Re: [PATCH] fixing sendfile on 64bit architectures

From: Andi Kleen
Date: Fri May 21 2004 - 17:41:21 EST


Andrew Morton <akpm@xxxxxxxx> writes:
>
> An alternative might be to remove all the ifdefs, build with
> -ffunction-sections and let the linker drop any unreferenced code...

I am not sure if it will handle EXPORT_SYMBOL correctly. Sometimes
we have the situation that a function is only referenced from EXPORT_SYMBOL,
but we do not want the linker to drop it because modules may use it.
(this regularly causes problems in lib-y files)

If it did it would be great to use though. I am sure there are other
dead functions around too. Or maybe someday we could even use the
IPA functionality in gcc 3.4 ...

-Andi

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