diff --git a/launcher/src/bootstrap.cpp b/launcher/src/bootstrap.cpp index a9b4ed4168..bb9c31975e 100644 --- a/launcher/src/bootstrap.cpp +++ b/launcher/src/bootstrap.cpp @@ -186,7 +186,7 @@ void bootstrap() { args.push_back(QEMU_BINARY); // Fix Bug args.push_back("-B"); - args.push_back("0x40000"); // Arbitary Value That Works On My System + args.push_back("0x3e800"); // Arbitary Value (Aligns To 4k And 16k Page Sizes) #endif // Setup Linker diff --git a/libreborn/include/libreborn/patch.h b/libreborn/include/libreborn/patch.h index 5cfd8dc2c9..83f243cefb 100644 --- a/libreborn/include/libreborn/patch.h +++ b/libreborn/include/libreborn/patch.h @@ -20,7 +20,7 @@ void *_overwrite_calls_manual(const char *file, int line, void *start, void *tar #define overwrite_calls_manual(...) \ _overwrite_calls_manual(__FILE__, __LINE__, __VA_ARGS__) template -static void _overwrite_calls(const char *file, int line, std::string (*set_overwrite)(const overwrite_t &, const std::function &), const overwrite_t &target) { +void _overwrite_calls(const char *file, int line, std::string (*set_overwrite)(const overwrite_t &, const std::function &), const overwrite_t &target) { std::string ret = set_overwrite(target, [&file, &line](void *start, void *target2) { return _overwrite_calls_manual(file, line, start, target2); });