Messages in this thread | | | Subject | Re: [PATCH] fixing sendfile on 64bit architectures | From | Andi Kleen <> | Date | Fri, 21 May 2004 11:01:15 +0200 |
| |
Andrew Morton <akpm@osdl.org> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |