1 //===- AndroidSectLinker.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 // 10 // AndroidSectLinker is a customized linker pass for Android platform. 11 // This pass set up default parameters for Android. 12 // 13 //===----------------------------------------------------------------------===// 14 15 #ifndef ANDROID_SECTLINKER_H 16 #define ANDROID_SECTLINKER_H 17 #ifdef ENABLE_UNITTEST 18 #include <gtest.h> 19 #endif 20 #include <mcld/CodeGen/SectLinker.h> 21 22 namespace mcld 23 { 24 25 class AndroidSectLinker : public SectLinker 26 { 27 public: 28 AndroidSectLinker(SectLinkerOption &pOption, 29 mcld::TargetLDBackend &pLDBackend); 30 31 virtual ~AndroidSectLinker(); 32 33 // addTargetInputs - add Android-specific linker options 34 virtual void addTargetOptions(llvm::Module &pM, 35 SectLinkerOption &pOption); 36 37 }; 38 39 } // namespace of mcld 40 41 #endif 42 43