mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 12:00:57 +02:00
* Set default images base to $100000000 for win64 executables as done by MS linkers. It helps to detect portability errors early.
git-svn-id: trunk@13138 -
This commit is contained in:
parent
bba2b87064
commit
e23a304254
@ -980,10 +980,13 @@ implementation
|
|||||||
if IsSharedLibrary then
|
if IsSharedLibrary then
|
||||||
ibase:='10000000'
|
ibase:='10000000'
|
||||||
else
|
else
|
||||||
if target_info.system in [system_arm_wince] then
|
if target_info.system in system_wince then
|
||||||
ibase:='10000'
|
ibase:='10000'
|
||||||
else
|
else
|
||||||
ibase:='400000';
|
if target_info.system=system_x86_64_win64 then
|
||||||
|
ibase:='100000000'
|
||||||
|
else
|
||||||
|
ibase:='400000';
|
||||||
end;
|
end;
|
||||||
Concat('IMAGEBASE $' + ibase);
|
Concat('IMAGEBASE $' + ibase);
|
||||||
Concat('HEADER');
|
Concat('HEADER');
|
||||||
|
Loading…
Reference in New Issue
Block a user