mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	Disable RandomizedBaseAddress on MSVC builds
The ASLR in Windows 8/Windows 2012 can break PostgreSQL's shared memory. It doesn't fail every time (which is explained by the Random part in ASLR), but can fail with errors abut failing to reserve shared memory region. MauMau, reviewed by Craig Ringer
This commit is contained in:
		
							parent
							
								
									057152b37c
								
							
						
					
					
						commit
						7f3e17b482
					
				| @ -324,6 +324,7 @@ sub WriteItemDefinitionGroup | |||||||
|       <ProgramDatabaseFile>.\\$cfgname\\$self->{name}\\$self->{name}.pdb</ProgramDatabaseFile> |       <ProgramDatabaseFile>.\\$cfgname\\$self->{name}\\$self->{name}.pdb</ProgramDatabaseFile> | ||||||
|       <GenerateMapFile>false</GenerateMapFile> |       <GenerateMapFile>false</GenerateMapFile> | ||||||
|       <MapFileName>.\\$cfgname\\$self->{name}\\$self->{name}.map</MapFileName> |       <MapFileName>.\\$cfgname\\$self->{name}\\$self->{name}.map</MapFileName> | ||||||
|  |       <RandomizedBaseAddress>false</RandomizedBaseAddress> | ||||||
|       <SubSystem>Console</SubSystem> |       <SubSystem>Console</SubSystem> | ||||||
|       <TargetMachine>$targetmachine</TargetMachine> |       <TargetMachine>$targetmachine</TargetMachine> | ||||||
| EOF | EOF | ||||||
|  | |||||||
| @ -190,6 +190,7 @@ EOF | |||||||
| 		StackReserveSize="4194304" DisableSpecificWarnings="$self->{disablewarnings}" | 		StackReserveSize="4194304" DisableSpecificWarnings="$self->{disablewarnings}" | ||||||
| 		GenerateDebugInformation="TRUE" ProgramDatabaseFile=".\\$cfgname\\$self->{name}\\$self->{name}.pdb" | 		GenerateDebugInformation="TRUE" ProgramDatabaseFile=".\\$cfgname\\$self->{name}\\$self->{name}.pdb" | ||||||
| 		GenerateMapFile="FALSE" MapFileName=".\\$cfgname\\$self->{name}\\$self->{name}.map" | 		GenerateMapFile="FALSE" MapFileName=".\\$cfgname\\$self->{name}\\$self->{name}.map" | ||||||
|  | 		RandomizedBaseAddress="FALSE" | ||||||
| 		SubSystem="1" TargetMachine="$targetmachine" | 		SubSystem="1" TargetMachine="$targetmachine" | ||||||
| EOF | EOF | ||||||
| 	if ($self->{disablelinkerwarnings}) | 	if ($self->{disablelinkerwarnings}) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user