Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.5 19 lines 398 B view raw
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * 4 * Copyright (C) 2015 Naveen N. Rao, IBM Corporation 5 */ 6 7#include "symbol.h" // for the elf__needs_adjust_symbols() prototype 8#include <stdbool.h> 9 10#ifdef HAVE_LIBELF_SUPPORT 11#include <gelf.h> 12 13bool elf__needs_adjust_symbols(GElf_Ehdr ehdr) 14{ 15 return ehdr.e_type == ET_EXEC || 16 ehdr.e_type == ET_REL || 17 ehdr.e_type == ET_DYN; 18} 19#endif