mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 10:09:45 +01:00
* in i8086 far data memory models add reference to the beginning of stack from
the startup code, so the object module, containing the stack segment doesn't get smartlinked away git-svn-id: trunk@27824 -
This commit is contained in:
parent
03ef4b6477
commit
d4565aeec2
@ -53,6 +53,10 @@
|
||||
extern __nearheap_start
|
||||
extern __nearheap_end
|
||||
|
||||
%ifdef __FAR_DATA__
|
||||
extern ___stack
|
||||
%endif
|
||||
|
||||
extern __SaveInt00
|
||||
|
||||
extern FPC_HANDLEERROR
|
||||
@ -473,6 +477,11 @@ __nullarea:
|
||||
segment stack stack class=stack
|
||||
resb 256
|
||||
stacktop:
|
||||
%else
|
||||
segment data
|
||||
; add reference to the beginning of stack, so the object module,
|
||||
; containing the stack segment doesn't get smartlinked away
|
||||
dd ___stack
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user