1 //===- ELFExecFileFormat.h ------------------------------------------------===// 2 // 3 // The MCLinker Project 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #ifndef MCLD_ELF_EXEC_FILE_FORMAT_H 10 #define MCLD_ELF_EXEC_FILE_FORMAT_H 11 #ifdef ENABLE_UNITTEST 12 #include <gtest.h> 13 #endif 14 #include <mcld/LD/ELFFileFormat.h> 15 16 namespace mcld 17 { 18 19 class GNULDBackend; 20 class MCLinker; 21 22 /** \class ELFExecFileFormat 23 * \brief ELFExecFileFormat describes the format for ELF dynamic objects. 24 */ 25 class ELFExecFileFormat : public ELFFileFormat 26 { 27 public: ELFExecFileFormat(GNULDBackend & pBackend)28 ELFExecFileFormat(GNULDBackend& pBackend) : ELFFileFormat(pBackend) 29 {} 30 31 void initObjectType(MCLinker& pLinker); 32 }; 33 34 } // namespace of mcld 35 36 #endif 37 38