diff options
author | gingold | 2008-01-15 05:53:39 +0000 |
---|---|---|
committer | gingold | 2008-01-15 05:53:39 +0000 |
commit | eb4d862a6b8ac3991dac9a8bc2fb0b9d9830e951 (patch) | |
tree | 3944b708fedbc9f955f09f947cd4377c286a9127 /translate/grt/config/chkstk.S | |
parent | 861828b455955858709dfda217af0188cfdef799 (diff) | |
download | ghdl-eb4d862a6b8ac3991dac9a8bc2fb0b9d9830e951.tar.gz ghdl-eb4d862a6b8ac3991dac9a8bc2fb0b9d9830e951.tar.bz2 ghdl-eb4d862a6b8ac3991dac9a8bc2fb0b9d9830e951.zip |
synchronize: add support for MacOSX, fix bogus type conversion
Diffstat (limited to 'translate/grt/config/chkstk.S')
-rw-r--r-- | translate/grt/config/chkstk.S | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/translate/grt/config/chkstk.S b/translate/grt/config/chkstk.S index 79abfb2..3fa5cc6 100644 --- a/translate/grt/config/chkstk.S +++ b/translate/grt/config/chkstk.S @@ -3,10 +3,16 @@ .text - /* Function called to loop on the process. */ +#ifdef __APPLE__ +#define __chkstk ___chkstk +#endif + + /* Function called to loop on the process. */ .align 4 +#ifdef __ELF__ .type __chkstk,@function - .global __chkstk +#endif + .globl __chkstk __chkstk: testl %eax,%eax je 0f @@ -15,6 +21,8 @@ __chkstk: jmp *(%esp,%eax) 0: ret +#ifdef __ELF__ .size __chkstk, . - __chkstk +#endif .ident "Written by T.Gingold" |