From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: DJGPP only dumps with USE_LISP_UNION_TYPE ?? Date: Wed, 10 Nov 2004 09:12:30 +0100 Message-ID: <442BAFFE-32F0-11D9-9DAE-000D93505B76@swipnet.se> References: <01c4c514$Blat.v2.2.2$ca305740@zahav.net.il> <418EB423.9030601@swipnet.se> <01c4c56a$Blat.v2.2.2$96dd3060@zahav.net.il> <418FD9C3.7080507@swipnet.se> <01c4c619$Blat.v2.2.2$5f981160@zahav.net.il> <41909B12.2060404@swipnet.se> <01c4c6df$Blat.v2.2.2$ce9fc3c0@zahav.net.il> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1100074427 9008 80.91.229.6 (10 Nov 2004 08:13:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2004 08:13:47 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 10 09:13:38 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CRnbm-000098-00 for ; Wed, 10 Nov 2004 09:13:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRnkD-0004iS-Ef for ged-emacs-devel@m.gmane.org; Wed, 10 Nov 2004 03:22:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CRnk4-0004h4-PG for emacs-devel@gnu.org; Wed, 10 Nov 2004 03:22:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CRnk2-0004fu-UY for emacs-devel@gnu.org; Wed, 10 Nov 2004 03:22:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRnk2-0004fh-R4 for emacs-devel@gnu.org; Wed, 10 Nov 2004 03:22:10 -0500 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CRnbP-0006iC-EZ; Wed, 10 Nov 2004 03:13:15 -0500 Original-Received: from coolsville.localdomain ([83.226.180.220] [83.226.180.220]) by mxfep02.bredband.com with ESMTP id <20041110081314.VECL6427.mxfep02.bredband.com@coolsville.localdomain>; Wed, 10 Nov 2004 09:13:14 +0100 In-Reply-To: <01c4c6df$Blat.v2.2.2$ce9fc3c0@zahav.net.il> Original-To: Eli Zaretskii X-Mailer: Apple Mail (2.619) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29699 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29699 >> I checked the assembler output from gcc and it seems OK, the .comm >> directives for s1 to 4 are the same as for GNU/Linux. > > Of course! __align__ works in DJGPP, I tested it when LSB tags were > introduced. > >> So either the assembler or linker is doing something bad. > > They don't: DECL_ALIGN works on platforms other than XP. I was thinking that maybe they did some runtime test that resulted in different behaviour between 98 and XP. > >> DJGPP also runs something called stubify after the linker, I don't >> know what it does, but it could also be responsible. > > It isn't. stubify simply prepends a small 2KB stub to the otherwise > COFF executable, since DOS and Windows don't know how to run COFF > images. The stub is a DOS program that, when invoked, loads the COFF > image into memory, switches the CPU into 32-bit protected mode, and > then passes control to the entry point of the COFF image. > The OS is also involved here, since the alignment of the program > sections matters, and DPMI has its own ideas about that. Sounds like a comlicated setup, all I wanted to do was to make sure my modifications compiled for all ports of Emacs :-) Well, I'm glad that you seem to have an idea about where the problem is. Jan D.