From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: building emacs-dynamic-modules on Windows Msys64 mingw32 Date: Sat, 25 Oct 2014 15:52:11 +0300 Message-ID: <83siic48hw.fsf@gnu.org> References: <85oat19ksm.fsf@stephe-leake.org> <83bnp064k3.fsf@gnu.org> <85h9ys9vzz.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1414241586 16587 80.91.229.3 (25 Oct 2014 12:53:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2014 12:53:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 25 14:52:59 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xi0q1-0003FM-FP for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2014 14:52:57 +0200 Original-Received: from localhost ([::1]:53380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi0q0-0001SI-T7 for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2014 08:52:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi0pi-0001R9-1t for emacs-devel@gnu.org; Sat, 25 Oct 2014 08:52:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi0pY-0006CC-Rq for emacs-devel@gnu.org; Sat, 25 Oct 2014 08:52:38 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:36094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi0pY-0006Bh-E7 for emacs-devel@gnu.org; Sat, 25 Oct 2014 08:52:28 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NE0005002Q1FV00@mtaout28.012.net.il> for emacs-devel@gnu.org; Sat, 25 Oct 2014 15:50:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NE00059Z3NWPE20@mtaout28.012.net.il>; Sat, 25 Oct 2014 15:50:20 +0300 (IDT) In-reply-to: <85h9ys9vzz.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175826 Archived-At: > From: Stephen Leake > Date: Sat, 25 Oct 2014 07:25:36 -0500 > > stephe@takver$ objdump -f temacs.exe > > temacs.exe: file format pei-i386 > architecture: i386, flags 0x0000013a: > EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGED > start address 0x001372f0 The start address looks wrong (too low). Can you show the log of the end of the build process, starting with the link command? I actually find this all very strange: the git repo claims to have started in July 2014, but doesn't say which Emacs branch it was forked off. And I don't think we had any problems like this in July on any of the 2 active branches. So maybe the person who did that should chime in and explain what he did, instead of us trying to second-guess him. Alternatively, make a diff since the first to the last commit in this repo, and then apply it to the current trunk. > stephe@takver$ objdump -fh temacs.exe > > temacs.exe: file format pei-i386 > architecture: i386, flags 0x0000013a: > EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGED > start address 0x001372f0 > > Sections: > Idx Name Size VMA LMA File off Algn > 0 .text 001b5c09 00000fff 00000fff 000005ff 2**4 > CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA > 1 .data 001cdf78 001b7000 001b7000 001b6400 2**6 > CONTENTS, ALLOC, LOAD, DATA > 2 .rdata 0001db10 00385000 00385000 00384400 2**6 > CONTENTS, ALLOC, LOAD, READONLY, DATA > 3 .eh_frame 00033810 003a3000 003a3000 003a2000 2**2 > CONTENTS, ALLOC, LOAD, READONLY, DATA > 4 .bss 00b5c480 003d7000 003d7000 00000000 2**6 > ALLOC > 5 .idata 00003a8c 00f34000 00f34000 003d5a00 2**2 > CONTENTS, ALLOC, LOAD, DATA > 6 .CRT 00000034 00f38000 00f38000 003d9600 2**2 > CONTENTS, ALLOC, LOAD, DATA > 7 .tls 00000020 00f39000 00f39000 003d9800 2**2 > CONTENTS, ALLOC, LOAD, DATA > 8 .rsrc 0000d7f4 00f3a000 00f3a000 003d9a00 2**2 > CONTENTS, ALLOC, LOAD, DATA > 9 .debug_aranges 00001388 00f48000 00f48000 003e7200 2**3 > CONTENTS, READONLY, DEBUGGING > 10 .debug_info 00631255 00f4a000 00f4a000 003e8600 2**0 > CONTENTS, READONLY, DEBUGGING > 11 .debug_abbrev 0002590c 0157c000 0157c000 00a19a00 2**0 > CONTENTS, READONLY, DEBUGGING > 12 .debug_line 000ca14e 015a2000 015a2000 00a3f400 2**0 > CONTENTS, READONLY, DEBUGGING > 13 .debug_str 00011e3c 0166d000 0166d000 00b09600 2**0 > CONTENTS, READONLY, DEBUGGING > 14 .debug_loc 002bd822 0167f000 0167f000 00b1b600 2**0 > CONTENTS, READONLY, DEBUGGING > 15 .debug_macro 02e3ceae 0193d000 0193d000 00dd9000 2**0 > CONTENTS, READONLY, DEBUGGING > 16 .debug_ranges 0005ab98 0477a000 0477a000 03c16000 2**0 > CONTENTS, READONLY, DEBUGGING > > > That's very close to the temacs.exe I built from the 24.3.94 tarball; it > has an additional section: > > 17 EMHEAP 02a00000 04eaa000 04eaa000 00000000 2**2 > ALLOC > > > Is there some other binutils tool that might provide more detailed info > on what's wrong with this file? How about 'file' (not from Binutils)? Also, what does "od -c -N2" says about it?