|
RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
|
Represents a resource entry. More...
#include <neexe.h>
Public Member Functions | |
| void | Dump (Dumper::Dumper &dump, unsigned index, bool isos2) const |
Public Member Functions inherited from Microsoft::NEFormat::Segment | |
| Segment (std::shared_ptr< Linker::Segment > segment, unsigned flags) | |
| void | AddRelocation (const Relocation &rel) |
| void | Dump (Dumper::Dumper &dump, unsigned index, bool isos2) const |
Public Attributes | |
| uint16_t | type_id = 0 |
| Type identifier, used by both Windows and OS/2. | |
| std::string | type_id_name |
| Type name, used only by Windows. | |
| uint16_t | id = 0 |
| Resource dentifier, used by both Windows and OS/2. | |
| std::string | id_name |
| Resource name, used only by Windows. | |
| uint16_t | handle = 0 |
| Reserved field, named so in Microsoft documentation. | |
| uint16_t | usage = 0 |
| Reserved field, named so in Microsoft documentation. | |
Public Attributes inherited from Microsoft::NEFormat::Segment | |
| std::shared_ptr< Linker::Image > | image |
| offset_t | data_offset = 0 |
| offset_t | image_size = 0 |
| Size of segment as stored in the file, only used during reading. | |
| flag_type | flags = flag_type(0) |
| uint32_t | total_size = 0 |
| Size of segment as stored in memory. | |
| uint16_t | movable_entry_index = 0 |
| Entry number for movable segments (field not present in segment table) | |
| std::vector< Relocation > | relocations |
| std::map< uint16_t, Relocation > | relocations_map |
| Used internally during output generation. | |
Additional Inherited Members | |
Public Types inherited from Microsoft::NEFormat::Segment | |
| enum | flag_type : uint16_t { Data = 1 , Code = 0 , Allocated = 2 , Loaded = 4 , Iterated = 8 , Movable = 0x10 , Fixed = 0 , Shareable = 0x20 , Preload = 0x40 , LoadOnCall = 0 , ExecuteOnly = 0x80|Code , ReadOnly = 0x80|Data , Relocations = 0x0100 , DebugInfo = 0x0200 , Discardable = 0x1000 } |
| enum | { PrivilegeLevelShift = 10 } |
Represents a resource entry.
For Windows executables, resources have very similar properties to segments, and for OS/2 executables, resources are also segments
| uint16_t Microsoft::NEFormat::Resource::id = 0 |
Resource dentifier, used by both Windows and OS/2.
Under Windows, if bit 15 is cleared, it references a string
| uint16_t Microsoft::NEFormat::Resource::type_id = 0 |
Type identifier, used by both Windows and OS/2.
Under Windows, if bit 15 is cleared, it references a string