🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41846

DJGPP GNU compiler varaint

#41846
From: Mark Phillips
Date: Tue, 06 Feb 1996 00:00
28 lines
1916 bytes
We're using the DJGPP (based on gcc) compiler to cross compile for 
68xxx systems. 
As part of the prologue the compiler calls a function ___start().                        
                    ^^^  
This was determined by looking at the assembly output of the
compiler.

When we run a simple test prog (on a 68307 embedded micro)
this call seems to cause the system to crash. However, when we start the 
program after this call, it runs OK. What does this call do and how can we 
fix the crashing problem ? The map file sais that a call to
___start() required __main.o. I tried creating such a  file with the
^^^                 ^^
function ___start() but this did not change the outcome.

Thanks in advance,

Mark

-- 
---------------------------------------------------------------------------
| Mark Phillips                          EMail: mark@phillipm.demon.co.uk |
| Datacall Systems Ltd,                           Tel: (+44) 01454 625252 |
| 1156 Aztec West,                                Fax: (+44) 01454 620909 |
| Bristol,                                                                |
| BS12 4Tf                                                                |
| United Kingdom                                                          |  
---------------------------------------------------------------------------
Technical Details
Message-ID: <161399621wnr@phillipm.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,df36d5c0f867fde9,start
X-Google-Attributes: gid11318c,public
From: Mark Phillips <mark@phillipm.demon.co.uk>
Subject: DJGPP GNU compiler varaint
Date: 1996/02/06
Message-ID: <161399621wnr@phillipm.demon.co.uk>
X-Deja-AN: 138172567
x-nntp-posting-host: phillipm.demon.co.uk
x-broken-date: Tuesday, Feb 06, 1996 16.13.39
x-mail2news-path: relay-4.mail.demon.net!post.demon.co.uk!phillipm.demon.co.uk
organization: None
reply-to: mark@phillipm.demon.co.uk
newsgroups: gnu.gcc.help