Skip to content
Snippets Groups Projects
Commit d439d834 authored by Serge Lamikhov-Center's avatar Serge Lamikhov-Center
Browse files

Fix header.e_ident initialization

parent e279f5c6
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<RunCodeAnalysis>false</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
......@@ -53,6 +54,7 @@
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\elfio;d:\Developer\boost_1_48_0;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<EnablePREfast>false</EnablePREfast>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
......
This diff is collapsed.
No preview for this file type
......@@ -33,7 +33,7 @@ class elf_header
{
public:
virtual ~elf_header() {};
virtual bool load( std::ifstream& stream ) = 0;
virtual bool load( std::ifstream& stream ) = 0;
virtual bool save( std::ofstream& stream ) const = 0;
// ELF header functions
......@@ -87,8 +87,6 @@ template< class T > class elf_header_impl : public elf_header
header.e_ident[EI_MAG3] = ELFMAG3;
header.e_ident[EI_CLASS] = elf_header_impl_types<T>::file_class;
header.e_ident[EI_DATA] = encoding;
header.e_ident[EI_PAD] = 0;
header.e_ident[EI_NIDENT] = EI_NIDENT;
header.e_ident[EI_VERSION] = EV_CURRENT;
header.e_version = EV_CURRENT;
header.e_version = (*convertor)( header.e_version );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment