From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: New emacs maintainer for cygwin Date: Wed, 20 May 2009 10:05:05 +0200 Message-ID: <4A13B9B1.4090703@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242807238 29599 80.91.229.12 (20 May 2009 08:13:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 08:13:58 +0000 (UTC) Cc: Ken Brown To: Emacs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 20 10:13:51 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M6gvr-0007V7-2g for ged-emacs-devel@m.gmane.org; Wed, 20 May 2009 10:13:47 +0200 Original-Received: from localhost ([127.0.0.1]:53609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6gvq-0000PT-BL for ged-emacs-devel@m.gmane.org; Wed, 20 May 2009 04:13:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6gvk-0000Ow-33 for emacs-devel@gnu.org; Wed, 20 May 2009 04:13:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6gvi-0000Oc-JL for emacs-devel@gnu.org; Wed, 20 May 2009 04:13:39 -0400 Original-Received: from [199.232.76.173] (port=47458 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6gvi-0000OZ-ED for emacs-devel@gnu.org; Wed, 20 May 2009 04:13:38 -0400 Original-Received: from smtp-out112.alice.it ([85.37.17.112]:1397) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6gvh-0005AB-Iz for emacs-devel@gnu.org; Wed, 20 May 2009 04:13:37 -0400 Original-Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out112.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Wed, 20 May 2009 10:04:52 +0200 Original-Received: from FBCMCL01B04.fbc.local ([192.168.69.85]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Wed, 20 May 2009 10:04:51 +0200 Original-Received: from [87.10.222.129] ([87.10.222.129]) by FBCMCL01B04.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 20 May 2009 10:04:50 +0200 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-OriginalArrivalTime: 20 May 2009 08:04:50.0697 (UTC) FILETIME=[A67A9790:01C9D921] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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: news.gmane.org gmane.emacs.devel:110994 Archived-At: Ken Brown wrote: > followed by this workaround: >> To work around this, build Emacs like this: >> >> >> LDFLAGS='-Wl,--enable-auto-import -Wl,--enable-auto-image-base' ./configure >> make LD='$(CC)' >> make LD='$(CC)' install >> >> >> This produces an Emacs binary that is independent of rebasing. >> >> >> Note that you _must_ use LD='$(CC)' in the last two commands above, to >> prevent GCC from passing the "--image-base 0x20000000" option to the >> linker, which is what it does by default. That option produces an >> Emacs binary with the base address 0x20000000, which will cause Emacs >> to hang after Cygwin DLLs are rebased. That workaround was born when I started to build Emacs. I found that the resulting build where more stable. Really it does not help in rebasing, which regards only DLL and not EXE, but it helps to build ALL the EXE (not only emacs.exe etc.) with those flags (-Wl,--enable...). To be honest, it is some time that in my build I use only: auto_import="-Wl,--enable-auto-import" pseudo_reloc="-Wl,--enable-runtime-pseudo-reloc" which should be recommended. Indeed, if I have well understood the discussion on Cygwin lists, in a future release of binutils, the new ld.exe should add automatically those flags in building exe file. Obviosly, those flags should be applied via cigwin.h, but the patch I found added them only for emacs.exe so I omitted to propose the patch. Cheers, Angelo. --- Don't know much about geography Don't know much trigonometry Don't know much about algebra ... Sam Cooke, Wonderful World