Rename WUMS_MODULE_INIT_BEFORE_ENTRYPOINT() to WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK(), add WUMS_MODULE_SKIP_ENTRYPOINT()

- Bump module information version to 2
- Bump WUMS version to 0.1.1
This commit is contained in:
Maschell 2020-12-26 15:49:11 +01:00
parent fa995a8627
commit b580b4aa0b
4 changed files with 7 additions and 5 deletions

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/share/wums_rules
export WUMS_MAJOR := 0 export WUMS_MAJOR := 0
export WUMS_MINOR := 1 export WUMS_MINOR := 1
export WUMS_PATCH := 0 export WUMS_PATCH := 1
VERSION := $(WUMS_MAJOR).$(WUMS_MINOR).$(WUMS_PATCH) VERSION := $(WUMS_MAJOR).$(WUMS_MINOR).$(WUMS_PATCH)

View File

@ -51,7 +51,8 @@ extern "C" {
#define WUMS_MODULE_VERSION(x) WUMS_META(version, x) #define WUMS_MODULE_VERSION(x) WUMS_META(version, x)
#define WUMS_MODULE_LICENSE(x) WUMS_META(license, x) #define WUMS_MODULE_LICENSE(x) WUMS_META(license, x)
#define WUMS_MODULE_DESCRIPTION(x) WUMS_META(description, x) #define WUMS_MODULE_DESCRIPTION(x) WUMS_META(description, x)
#define WUMS_MODULE_INIT_BEFORE_ENTRYPOINT() WUMS_META(initBeforeEntrypoint, "true") #define WUMS_MODULE_SKIP_ENTRYPOINT() WUMS_META(skipEntrypoint, "true")
#define WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK() WUMS_META(initBeforeRelocationDoneHook, "true")
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <cstdint> #include <stdint.h>
#define EXPORT_MAXIMUM_NAME_LENGTH 50 #define EXPORT_MAXIMUM_NAME_LENGTH 50
typedef struct export_data_t { typedef struct export_data_t {

View File

@ -53,11 +53,12 @@ struct module_information_single_t {
uint32_t entrypoint; uint32_t entrypoint;
uint32_t startAddress; uint32_t startAddress;
uint32_t endAddress; uint32_t endAddress;
uint8_t initBeforeEntrypoint; uint8_t skipEntrypoint;
uint8_t initBeforeRelocationDoneHook;
}; };
#define MAXIMUM_MODULES 8 #define MAXIMUM_MODULES 8
#define MODULE_INFORMATION_VERSION 0x00000001 #define MODULE_INFORMATION_VERSION 0x00000002
struct module_information_t { struct module_information_t {
uint32_t version = MODULE_INFORMATION_VERSION; uint32_t version = MODULE_INFORMATION_VERSION;