OSDN Git Service

x86/asm: Differentiate between code and function alignment
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Sep 2022 11:10:48 +0000 (13:10 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Oct 2022 14:40:58 +0000 (16:40 +0200)
commit8eb5d34e77c63fde8af21c691bcf6e3cd87f7829
treef71a892987c2fce2f311696c7e3849def20cfca4
parentd49a0626216b95cd4bf696f6acf55f39a16ab0bb
x86/asm: Differentiate between code and function alignment

Create SYM_F_ALIGN to differentiate alignment requirements between
SYM_CODE and SYM_FUNC.

This distinction is useful later when adding padding in front of
functions; IOW this allows following the compiler's
patchable-function-entry option.

[peterz: Changelog]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111143.824822743@infradead.org
arch/x86/include/asm/linkage.h