parent
fa2bbf6768
commit
b3a0af913d
@ -1,2 +1,3 @@
|
||||
# stage-one
|
||||
|
||||
this is a draft showing how stage one might be implimented using c++ inheritance. please refer to main.cpp for more.
|
@ -0,0 +1,5 @@
|
||||
#include <llodctor/llodctor_lib.hpp>
|
||||
|
||||
void llo::s1::dctor_lib_t::generate( lloiff_t &iff )
|
||||
{
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
#include <coff/archive.hpp>
|
||||
#include <llodctor/llodctor_base.hpp>
|
||||
|
||||
namespace llo::s1
|
||||
{
|
||||
class dctor_lib_t : public dctor_base_t
|
||||
{
|
||||
public:
|
||||
explicit dctor_lib_t( const std::vector< std::uint8_t > &image,
|
||||
llo::s1::symbol_loader_base_t *symbol_loader = nullptr )
|
||||
: dctor_base_t( image, symbol_loader )
|
||||
{
|
||||
const auto lib_header = reinterpret_cast< const ar::header_t * >( image.data() );
|
||||
auto lib_entry = &lib_header->first_entry;
|
||||
|
||||
do
|
||||
{
|
||||
// skip these since we dont want to extract them... they are not obj files...
|
||||
if ( lib_entry->is_string_table() || lib_entry->is_symbol_table() )
|
||||
continue;
|
||||
|
||||
std::printf( "> object name = %s\n", lib_entry->to_string());
|
||||
} while ( ( lib_entry = lib_header->first_entry.next() ) );
|
||||
}
|
||||
void generate( lloiff_t &iff ) override;
|
||||
};
|
||||
} // namespace llo::s1
|
@ -1,4 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerCommandArguments>-i llo-s1.exe -s llo-s1.map</LocalDebuggerCommandArguments>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerCommandArguments>-i llo-s1.exe -s llo-s1.map</LocalDebuggerCommandArguments>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Loading…
Reference in new issue