toolsandutils/e32tools/elf2e32/source/pl_elflocalrelocation.h
changeset 0 83f4b4db085c
child 2 99082257a271
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Implementation of the Class ElfLocalRelocation for the elf2e32 tool
       
    15 // @internalComponent
       
    16 // @released
       
    17 // 
       
    18 //
       
    19 
       
    20 #if !defined(_PL_ELFLOCALRELOCATION_H)
       
    21 #define _PL_ELFLOCALRELOCATION_H
       
    22 
       
    23 #include "pl_elfrelocation.h"
       
    24 
       
    25 /**
       
    26 This class represents relocations generated by the linker that need to be interpreted into
       
    27 the E32 image.
       
    28 @internalComponent
       
    29 @released
       
    30 */
       
    31 class ElfLocalRelocation : public ElfRelocation
       
    32 {
       
    33 
       
    34 public:
       
    35 	ElfLocalRelocation(ElfExecutable *aElfExec,PLMemAddr32 aAddr, \
       
    36 			PLUINT32 aAddend, PLUINT32 aIndex, PLUCHAR aRelType, \
       
    37 			Elf32_Rel* aRel, bool aVeneerSymbol=false);
       
    38 	ElfLocalRelocation(ElfExecutable *aElfExec,PLMemAddr32 aAddr, \
       
    39 			PLUINT32 aAddend, PLUINT32 aIndex, PLUCHAR aRelType, \
       
    40 			Elf32_Rel* aRel, ESegmentType aSegmentType, Elf32_Sym* aSym, bool aDelSym, bool aVeneerSymbol=false);
       
    41 	~ElfLocalRelocation();
       
    42 	bool IsImportRelocation();
       
    43 	void Add();
       
    44 
       
    45 	bool ExportTableReloc();
       
    46 	PLUINT16 Fixup();
       
    47 	bool iDelSym;
       
    48 	bool iVeneerSymbol;
       
    49 };
       
    50 
       
    51 
       
    52 
       
    53 
       
    54 #endif // !defined(_PL_ELFLOCALRELOCATION_H)