1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Only using /BASE for DLLs now

This commit is contained in:
Brian Fiete 2020-07-18 07:05:22 -07:00
parent dc0c0946a0
commit cf8bb561e4

View file

@ -796,10 +796,10 @@ namespace IDE
} }
linkLine.Append("-nologo "); linkLine.Append("-nologo ");
//linkLine.Append("-fixed ");
if ((project.mGeneralOptions.mTargetType == .BeefDynLib) && (workspaceOptions.mAllowHotSwapping) && (is64Bit))
if ((workspaceOptions.mAllowHotSwapping) && (is64Bit))
{ {
// This helps to ensure that DLLs have enough hot swapping space after them
int nameHash = targetPath.GetHashCode(); int nameHash = targetPath.GetHashCode();
int64 wantAddress = (((nameHash & 0x3FFFF) + 0x10) << 28); int64 wantAddress = (((nameHash & 0x3FFFF) + 0x10) << 28);
linkLine.AppendF("-base:0x{0:X} -dynamicbase:no ", wantAddress); linkLine.AppendF("-base:0x{0:X} -dynamicbase:no ", wantAddress);