mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
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 <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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
|