forked from luck/tmp_suning_uos_patched
df1a0a110c
Now that map.h isn't included by any other header, we can check where it is really needed, i.e. we can remove it and be sure that it isn't being obtained indirectly. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-iu8ylqky7g1i9i54v3y7qovw@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
19 lines
397 B
C
19 lines
397 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
*
|
|
* Copyright (C) 2015 Naveen N. Rao, IBM Corporation
|
|
*/
|
|
|
|
#include "symbol.h" // for the elf__needs_adjust_symbols() prototype
|
|
#include <stdbool.h>
|
|
#include <gelf.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
|