mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
Instead of manually annotating each __ex_table entry, just make the section mergeable and store the entry size in the ELF section header. Either way works for objtool create_fake_symbols(), this way produces cleaner code generation. Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://patch.msgid.link/b858cb7891c1ba0080e22a9c32595e6c302435e2.1764694625.git.jpoimboe@kernel.org
24 lines
665 B
C
24 lines
665 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* for use by sys-$SUBARCH/kernel-offsets.c */
|
|
|
|
DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
|
|
|
|
DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
|
|
DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
|
|
DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
|
|
|
|
DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
|
|
DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);
|
|
|
|
DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
|
|
|
|
DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
|
|
DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
|
|
|
|
DEFINE(UM_KERN_GDT_ENTRY_TLS_ENTRIES, GDT_ENTRY_TLS_ENTRIES);
|
|
|
|
DEFINE(UM_SECCOMP_ARCH_NATIVE, SECCOMP_ARCH_NATIVE);
|
|
|
|
DEFINE(ALT_INSTR_SIZE, sizeof(struct alt_instr));
|
|
DEFINE(EXTABLE_SIZE, sizeof(struct exception_table_entry));
|