ELFDump.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===-- ELFDump.h - ELF-specific dumper -------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H
  9. #define LLVM_TOOLS_LLVM_OBJDUMP_ELFDUMP_H
  10. #include "llvm/ADT/SmallVector.h"
  11. namespace llvm {
  12. class Error;
  13. namespace object {
  14. class ELFObjectFileBase;
  15. class ELFSectionRef;
  16. class ObjectFile;
  17. class RelocationRef;
  18. } // namespace object
  19. namespace objdump {
  20. Error getELFRelocationValueString(const object::ELFObjectFileBase *Obj,
  21. const object::RelocationRef &Rel,
  22. llvm::SmallVectorImpl<char> &Result);
  23. uint64_t getELFSectionLMA(const object::ELFSectionRef &Sec);
  24. void printELFFileHeader(const object::ObjectFile *O);
  25. void printELFDynamicSection(const object::ObjectFile *Obj);
  26. void printELFSymbolVersionInfo(const object::ObjectFile *Obj);
  27. } // namespace objdump
  28. } // namespace llvm
  29. #endif