drgn/libdrgn/symbol.h
Omar Sandoval c0d8709b45 Update copyright headers to Meta
Signed-off-by: Omar Sandoval <osandov@osandov.com>
2021-11-21 15:59:44 -08:00

24 lines
529 B
C

// Copyright (c) Meta Platforms, Inc. and affiliates.
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef DRGN_SYMBOL_H
#define DRGN_SYMBOL_H
#include <gelf.h>
#include "drgn.h"
struct drgn_symbol {
const char *name;
uint64_t address;
uint64_t size;
enum drgn_symbol_binding binding;
enum drgn_symbol_kind kind;
};
/** Initialize a @ref drgn_symbol from an ELF symbol. */
void drgn_symbol_from_elf(const char *name, uint64_t address,
const GElf_Sym *elf_sym, struct drgn_symbol *ret);
#endif /* DRGN_SYMBOL_H */