15460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//===- MipsELFDynamic.h ---------------------------------------------------===// 25460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 35460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// The MCLinker Project 45460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 55460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// This file is distributed under the University of Illinois Open Source 65460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// License. See LICENSE.TXT for details. 75460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 85460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//===----------------------------------------------------------------------===// 937b74a387bb3993387029859c2d9d051c41c724eStephen Hines#ifndef TARGET_MIPS_MIPSELFDYNAMIC_H_ 1037b74a387bb3993387029859c2d9d051c41c724eStephen Hines#define TARGET_MIPS_MIPSELFDYNAMIC_H_ 115460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 1237b74a387bb3993387029859c2d9d051c41c724eStephen Hines#include "mcld/Target/ELFDynamic.h" 135460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 145460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaonamespace mcld { 155460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 165460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaoclass MipsGNULDBackend; 175460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 1837b74a387bb3993387029859c2d9d051c41c724eStephen Hinesclass MipsELFDynamic : public ELFDynamic { 1937b74a387bb3993387029859c2d9d051c41c724eStephen Hines public: 20d0fbbb227051be16931a1aa9b4a7722ac039c698Shih-wei Liao MipsELFDynamic(const MipsGNULDBackend& pParent, const LinkerConfig& pConfig); 215460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 2237b74a387bb3993387029859c2d9d051c41c724eStephen Hines private: 235460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao const MipsGNULDBackend& m_pParent; 2487f34658dec9097d987d254a990ea7f311bfc95fStephen Hines const LinkerConfig& m_pConfig; 255460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 2637b74a387bb3993387029859c2d9d051c41c724eStephen Hines private: 275460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao void reserveTargetEntries(const ELFFileFormat& pFormat); 285460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao void applyTargetEntries(const ELFFileFormat& pFormat); 295460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 305460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao size_t getSymTabNum(const ELFFileFormat& pFormat) const; 315460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao size_t getGotSym(const ELFFileFormat& pFormat) const; 325460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao size_t getLocalGotNum(const ELFFileFormat& pFormat) const; 3387f34658dec9097d987d254a990ea7f311bfc95fStephen Hines uint64_t getBaseAddress(); 345460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao}; 355460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 3637b74a387bb3993387029859c2d9d051c41c724eStephen Hines} // namespace mcld 375460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 3837b74a387bb3993387029859c2d9d051c41c724eStephen Hines#endif // TARGET_MIPS_MIPSELFDYNAMIC_H_ 39