mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-14 00:31:50 +01:00
23 lines
344 B
C
23 lines
344 B
C
|
#pragma once
|
||
|
#include "elf.h"
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
|
||
|
struct Section
|
||
|
{
|
||
|
elf::SectionHeader header;
|
||
|
std::string name;
|
||
|
std::vector<char> data;
|
||
|
};
|
||
|
|
||
|
struct Rpl
|
||
|
{
|
||
|
elf::Header header;
|
||
|
uint32_t fileSize;
|
||
|
std::vector<Section> sections;
|
||
|
};
|
||
|
|
||
|
uint32_t
|
||
|
getSectionIndex(const Rpl &rpl,
|
||
|
const Section §ion);
|