mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +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
20 lines
408 B
C
20 lines
408 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#define COMPILE_OFFSETS
|
|
#include <linux/stddef.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/elf.h>
|
|
#include <linux/crypto.h>
|
|
#include <linux/kbuild.h>
|
|
#include <linux/audit.h>
|
|
#include <asm/mman.h>
|
|
#include <asm/seccomp.h>
|
|
#include <asm/extable.h>
|
|
|
|
/* workaround for a warning with -Wmissing-prototypes */
|
|
void foo(void);
|
|
|
|
void foo(void)
|
|
{
|
|
#include <common-offsets.h>
|
|
}
|