[PATCH v2 11/18] arm64: make mrs_s and msr_s macros work with LTO

Sami Tolvanen samitolvanen at google.com
Thu Nov 16 08:46:08 PST 2017


On Thu, Nov 16, 2017 at 07:56:50AM -0600, Segher Boessenkool wrote:
> The compiler is fine, the assembler is fine (and the linker has
> nothing to do with it).  Your code is not fine.

Would you care to elaborate? The current code assumes that macros are
visible in other inline assembly blocks, and LLVM developers seem to
feel this isn't correct behavior. This patch fixes the current code so
it works with both assemblers.

Sami



More information about the linux-arm-kernel mailing list