mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Only using /BASE for DLLs now
This commit is contained in:
parent
dc0c0946a0
commit
cf8bb561e4
1 changed files with 3 additions and 3 deletions
|
@ -796,10 +796,10 @@ namespace IDE
|
|||
}
|
||||
|
||||
linkLine.Append("-nologo ");
|
||||
//linkLine.Append("-fixed ");
|
||||
|
||||
if ((workspaceOptions.mAllowHotSwapping) && (is64Bit))
|
||||
|
||||
if ((project.mGeneralOptions.mTargetType == .BeefDynLib) && (workspaceOptions.mAllowHotSwapping) && (is64Bit))
|
||||
{
|
||||
// This helps to ensure that DLLs have enough hot swapping space after them
|
||||
int nameHash = targetPath.GetHashCode();
|
||||
int64 wantAddress = (((nameHash & 0x3FFFF) + 0x10) << 28);
|
||||
linkLine.AppendF("-base:0x{0:X} -dynamicbase:no ", wantAddress);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue