Mail Archives: djgpp/1999/09/08/21:24:41
From: | "Keith McCormick" <kdm98 AT spiritone DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Need help building Allegro!?!
|
Date: | 8 Sep 1999 21:20:42 GMT
|
Organization: | <none>
|
Lines: | 37
|
Message-ID: | <936825641.962854@ridge.spiritone.com>
|
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 990907134032 DOT 27853B-100000 AT is>
|
NNTP-Posting-Host: | ridge.spiritone.com
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300
|
X-Trace-ISP: | 936825641 9221 206.98.120.228 hf7o/F82:xqz98
|
X-Complaints-To-ISP: | abuse at spiritone dot com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Well I changed it back to two and allegro builds now.
KeithM
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 990907134032 DOT 27853B-100000 AT is...
>
> On 6 Sep 1999, Keith McCormick wrote:
>
> > Another thing I changed myself (as intimated in mail archive) is the
> > COFF_DEFAULT_SECTION_ALIGNMENT_POWER. I changed it to 4 instead of 2.
>
> That might just be your problem. AFAIK, naive changes like that break
> the static constructors and destructors, which are called from
> `__main', and that is exactly where your program crashes.
>
> Mark, am I right in assuming that section alignment can cause these
> crashes?
>
> So either try the same setup with Binutils 2.8.1 from SimTel, or
> rebuild Binutils 2.9.1 after reverting to the original alignment, and
> see if the problem goes away.
>
> > Also, does this actually do anything because the linker scripts have an
> > ALIGN statement.
>
> Of course, this changes something. The ALIGN directives in the linker
> script are for the beginning of the section, whereas
> COFF_DEFAULT_SECTION_ALIGNMENT_POWER is for *subsections*.
> Subsections are the parts of code generated for each object file. If
> the object code for each .o file is 4-byte aligned, then you cannot
> get a better alignment for your code even if the section beginning is
> aligned better.
>
- Raw text -