bintools/elftools/elftran/elf_tran.cpp
changeset 590 360bd6b35136
parent 0 044383f39525
equal deleted inserted replaced
588:c7c26511138f 590:360bd6b35136
    19 #include <time.h>
    19 #include <time.h>
    20 #include <malloc.h>
    20 #include <malloc.h>
    21 #include <string.h>
    21 #include <string.h>
    22 #include "elftran.h"
    22 #include "elftran.h"
    23 #include <e32std.h>
    23 #include <e32std.h>
    24 #include <elfdefs.h>
    24 #include "elfdefs.h"
    25 #include "elffile.h"
    25 #include "elffile.h"
    26 #include <h_ver.h>
    26 #include "h_ver.h"
    27 #include <h_utl.h>
    27 #include "h_utl.h"
    28 
    28 
    29 extern TUid gUid1, gUid2, gUid3;
    29 extern TUid gUid1, gUid2, gUid3;
    30 extern int gSetUid1, gSetUid2, gSetUid3;
    30 extern int gSetUid1, gSetUid2, gSetUid3;
    31 
    31 
    32 int gAlignConstSection=FALSE;
    32 int gAlignConstSection=FALSE;
   110 //
   110 //
   111 	
   111 	
   112 {
   112 {
   113 	iSource = EElfFile;
   113 	iSource = EElfFile;
   114 	ELFFile elffile;
   114 	ELFFile elffile;
   115 	if (!elffile.Init((const TText * const)aFileName)) return KErrGeneral;
   115 	if (!elffile.Init(aFileName)) return KErrGeneral;
   116 		
   116 		
   117 	iFileName = strdup(aFileName);
   117 	iFileName = strdup(aFileName);
   118 
   118 
   119 	Adjust(ALIGN4(sizeof(E32ImageHeaderV)));	// fixed for now because holes not supported
   119 	Adjust(ALIGN4(sizeof(E32ImageHeaderV)));	// fixed for now because holes not supported
   120 	SetDefaultHeader();
   120 	SetDefaultHeader();