[PATCH v2 1/3] compiler_types: Introduce the Clang __preserve_most function attribute

Steven Rostedt rostedt at goodmis.org
Mon Aug 7 19:16:58 PDT 2023


On Mon, 7 Aug 2023 14:31:37 +0200
Peter Zijlstra <peterz at infradead.org> wrote:

> > that this is not a compilation for a module.  Otherwise modules built
> > with a compiler with __preserve_most__ attribute support are
> > incompatible with kernels built with a compiler without that attribute.  
> 
> We have a metric ton of options that can break module ABI. If you're
> daft enough to not build with the exact same compiler and .config you
> get to keep the pieces.

I believe there's enough checks for various compiler options in order to
enable features during the build that trying to load a module built with
another compiler is pretty much guaranteed to fail today.

-- Steve



More information about the linux-arm-kernel mailing list