From d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:45:28 +0000 Subject: [PATCH] add boot partition size --- kernel/tools/perf/arch/powerpc/util/sym-handling.c | 16 ++-------------- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git a/kernel/tools/perf/arch/powerpc/util/sym-handling.c b/kernel/tools/perf/arch/powerpc/util/sym-handling.c index 10a44e9..0856b32 100644 --- a/kernel/tools/perf/arch/powerpc/util/sym-handling.c +++ b/kernel/tools/perf/arch/powerpc/util/sym-handling.c @@ -1,26 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-only /* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2, as - * published by the Free Software Foundation. * * Copyright (C) 2015 Naveen N. Rao, IBM Corporation */ -#include "debug.h" +#include "dso.h" #include "symbol.h" #include "map.h" #include "probe-event.h" #include "probe-file.h" - -#ifdef HAVE_LIBELF_SUPPORT -bool elf__needs_adjust_symbols(GElf_Ehdr ehdr) -{ - return ehdr.e_type == ET_EXEC || - ehdr.e_type == ET_REL || - ehdr.e_type == ET_DYN; -} - -#endif int arch__choose_best_symbol(struct symbol *syma, struct symbol *symb __maybe_unused) -- Gitblit v1.6.2