hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/perf/arch/powerpc/util/sym-handling.c
....@@ -1,26 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * This program is free software; you can redistribute it and/or modify
3
- * it under the terms of the GNU General Public License, version 2, as
4
- * published by the Free Software Foundation.
53 *
64 * Copyright (C) 2015 Naveen N. Rao, IBM Corporation
75 */
86
9
-#include "debug.h"
7
+#include "dso.h"
108 #include "symbol.h"
119 #include "map.h"
1210 #include "probe-event.h"
1311 #include "probe-file.h"
14
-
15
-#ifdef HAVE_LIBELF_SUPPORT
16
-bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
17
-{
18
- return ehdr.e_type == ET_EXEC ||
19
- ehdr.e_type == ET_REL ||
20
- ehdr.e_type == ET_DYN;
21
-}
22
-
23
-#endif
2412
2513 int arch__choose_best_symbol(struct symbol *syma,
2614 struct symbol *symb __maybe_unused)