equal
deleted
inserted
replaced
|
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 ElfConsumer for the elf2e32 tool |
|
15 // @internalComponent |
|
16 // @released |
|
17 // |
|
18 // |
|
19 |
|
20 #if !defined(_PL_ELFCONSUMER_H_) |
|
21 #define _PL_ELFCONSUMER_H_ |
|
22 |
|
23 #include "pl_elfexecutable.h" |
|
24 #include <list> |
|
25 #include <stdio.h> |
|
26 |
|
27 using std::list; |
|
28 |
|
29 enum{ KMaxWindowsIOSize = 32 * 1024 * 1024 }; |
|
30 |
|
31 /** |
|
32 This class is for reading the ELF file generated by the static linker and based on whether it is |
|
33 ET_EXEC or ET_DYN, it processes the imports(if required) or exports respectively. |
|
34 @internalComponent |
|
35 @released |
|
36 */ |
|
37 class ElfConsumer : public ElfExecutable |
|
38 { |
|
39 public: |
|
40 ElfConsumer(ParameterListInterface *aParameterListInterface); |
|
41 virtual ~ElfConsumer(); |
|
42 PLUINT32 ReadElfFile(char* aFile); |
|
43 int GetElfSymbolList(list<Symbol*>& aList); |
|
44 void GetImageDetails(/*E32ImageInterface aInterface*/); |
|
45 PLUINT32 ProcessElfFile(); |
|
46 |
|
47 private: |
|
48 char* iMemBlock; |
|
49 }; |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 #endif // !defined(_PL_ELFCONSUMER_H_) |