emitElfStatic-stub.C

Go to the documentation of this file.
00001 /*
00002  * See the dyninst/COPYRIGHT file for copyright information.
00003  * 
00004  * We provide the Paradyn Tools (below described as "Paradyn")
00005  * on an AS IS basis, and do not warrant its validity or performance.
00006  * We reserve the right to update, modify, or discontinue this
00007  * software at any time.  We shall have no obligation to supply such
00008  * updates or modifications or any other form of support to you.
00009  * 
00010  * By your use of Paradyn, you understand and agree that we (or any
00011  * other person or entity with proprietary rights in Paradyn) are
00012  * under no obligation to provide either maintenance services,
00013  * update services, notices of latent defects, or correction of
00014  * defects for Paradyn.
00015  * 
00016  * This library is free software; you can redistribute it and/or
00017  * modify it under the terms of the GNU Lesser General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2.1 of the License, or (at your option) any later version.
00020  * 
00021  * This library is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024  * Lesser General Public License for more details.
00025  * 
00026  * You should have received a copy of the GNU Lesser General Public
00027  * License along with this library; if not, write to the Free Software
00028  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00029  */
00030 
00031 /* 
00032  * Holds architecture specific stub functions needed by static executable
00033  * rewriter. This file should be used for architectures where this feature is
00034  * not implemented.
00035  */
00036 
00037 #include <cstdlib>
00038 #include <cstdio>
00039 #include <iostream>
00040 #include <set>
00041 #include <map>
00042 
00043 #include "emitElfStatic.h"
00044 #include "Symtab.h"
00045 #include "Symbol.h"
00046 #include "Archive.h"
00047 #include "Object.h"
00048 #include "Region.h"
00049 
00050 using namespace Dyninst;
00051 using namespace Dyninst::SymtabAPI;
00052 
00053 // This needs to be a #define so the assert actually shows the message
00054 #define EMIT_STATIC_ASSERT "This function is currently unimplemented on this architecture."
00055 
00056 bool emitElfStatic::archSpecificRelocation(Symtab *, Symtab *, char *, relocationEntry &,
00057         Offset, Offset, Offset, LinkMap &, string &) {
00058     assert(!EMIT_STATIC_ASSERT);
00059     return false;
00060 }
00061 
00062 bool emitElfStatic::checkSpecialCaseSymbols(Symtab *, Symbol *) {
00063     assert(!EMIT_STATIC_ASSERT);
00064     return false;
00065 }
00066 
00067 Offset emitElfStatic::layoutTLSImage(Offset, Region *, Region *, LinkMap &) {
00068     assert(!EMIT_STATIC_ASSERT);
00069     return 0;
00070 }
00071 
00072 Offset emitElfStatic::adjustTLSOffset(Offset, Offset) {
00073     assert(!EMIT_STATIC_ASSERT);
00074     return 0;
00075 }
00076 
00077 char emitElfStatic::getPaddingValue(Region::RegionType) {
00078     assert(!EMIT_STATIC_ASSERT);
00079     return 0;
00080 }
00081 
00082 void emitElfStatic::cleanupTLSRegionOffsets(map<Region *, LinkMap::AllocPair> &,
00083         Region *, Region *) 
00084 {
00085     assert(!EMIT_STATIC_ASSERT);
00086 }
00087 
00088 bool emitElfStatic::isGOTRelocation(unsigned long) {
00089     assert(!EMIT_STATIC_ASSERT);
00090     return false;
00091 }
00092 
00093 Offset emitElfStatic::getGOTSize(LinkMap &) {
00094     assert(!EMIT_STATIC_ASSERT);
00095     return 0;
00096 }
00097 
00098 Offset emitElfStatic::getGOTAlign(LinkMap &) {
00099     assert(!EMIT_STATIC_ASSERT);
00100     return 0;
00101 }
00102 
00103 void emitElfStatic::buildGOT(LinkMap &) {
00104     assert(!EMIT_STATIC_ASSERT);
00105 }
00106 
00107 bool emitElfStatic::isConstructorRegion(Region *) {
00108     assert(!EMIT_STATIC_ASSERT);
00109     return false;
00110 }
00111 
00112 Offset emitElfStatic::layoutNewCtorRegion(LinkMap &) {
00113     assert(!EMIT_STATIC_ASSERT);
00114     return 0;
00115 }
00116 
00117 bool emitElfStatic::createNewCtorRegion(LinkMap &) {
00118     assert(!EMIT_STATIC_ASSERT);
00119     return false;
00120 }
00121 
00122 bool emitElfStatic::isDestructorRegion(Region *) {
00123     assert(!EMIT_STATIC_ASSERT);
00124     return false;
00125 }
00126 
00127 bool emitElfStatic::isGOTRegion(Region *) {
00128     assert(!EMIT_STATIC_ASSERT);
00129     return false;
00130 }
00131 
00132 Offset emitElfStatic::layoutNewDtorRegion(LinkMap &) {
00133     assert(!EMIT_STATIC_ASSERT);
00134     return 0;
00135 }
00136 
00137 bool emitElfStatic::createNewDtorRegion(LinkMap &) {
00138     assert(!EMIT_STATIC_ASSERT);
00139     return false;
00140 }
00141 
00142 void emitElfStatic::getExcludedSymbolNames(set<string> &) {
00143     assert(!EMIT_STATIC_ASSERT);
00144 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1