toolsandutils/e32tools/elf2e32/source/pl_elfrelocations.h
changeset 0 83f4b4db085c
child 1 d4b442d23379
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 "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 ElfRelocations for the elf2e32 tool
       
    15 // @internalComponent
       
    16 // @released
       
    17 // 
       
    18 //
       
    19 
       
    20 #if !defined(_PL_ELFRELOCATIONS_H)
       
    21 #define _PL_ELFRELOCATIONS_H
       
    22 
       
    23 #include "pl_common.h"
       
    24 #include <list>
       
    25 
       
    26 class ElfRelocation;
       
    27 class ElfLocalRelocation;
       
    28 
       
    29 /**
       
    30 This class is for Elf relocations.
       
    31 
       
    32 @internalComponent
       
    33 @released
       
    34 */
       
    35 class ElfRelocations
       
    36 {
       
    37 public:
       
    38 	typedef std::list<ElfLocalRelocation*> RelocationList;
       
    39 	
       
    40 	ElfRelocations();
       
    41 	~ElfRelocations();
       
    42 	PLUINT32 Add(ElfLocalRelocation* aReloc);
       
    43 
       
    44 	RelocationList & GetCodeRelocations();
       
    45 	RelocationList & GetDataRelocations();
       
    46 	struct Cmp {
       
    47 		bool operator()(ElfRelocation * x, ElfRelocation * y);
       
    48 	};
       
    49 private:
       
    50 	bool iCodeSortedP;
       
    51 	RelocationList iCodeRelocations;
       
    52 	bool iDataSortedP;
       
    53 	RelocationList iDataRelocations;
       
    54 
       
    55 };
       
    56 
       
    57 
       
    58 
       
    59 
       
    60 #endif // !defined(_PL_ELFRELOCATIONS_H)