Files
third_party_elfutils/libdwelf/libdwelfP.h
T
Mark Wielaard d81d32d2a4 libdwelf: Add dwelf_elf_gnu_build_id.
Move internal function __libdwfl_find_build_id to libdwelf and use it to
add a public dwelf_elf_gnu_build_id function to extract the NT_GNU_BUILD_ID
from an ELF file using either the shdrs or phdrs. Adjust internal callers
and add a testcase.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
2014-05-01 13:51:31 +02:00

43 lines
1.4 KiB
C

/* Internal definitions for libdwelf. DWARF ELF Low-level Functions.
Copyright (C) 2014 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at
your option) any later version
or
* the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at
your option) any later version
or both in parallel, as here.
elfutils is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see <http://www.gnu.org/licenses/>. */
#ifndef _LIBDWELFP_H
#define _LIBDWELFP_H 1
#include <libdwelf.h>
#include "../libdw/libdwP.h" /* We need its INTDECLs. */
#include <assert.h>
#include <string.h>
/* Avoid PLT entries. */
INTDECL (dwelf_elf_gnu_debuglink)
INTDECL (dwelf_dwarf_gnu_debugaltlink)
INTDECL (dwelf_elf_gnu_build_id)
#endif /* libdwelfP.h */