all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: Emacs <emacs-devel@gnu.org>
Cc: Ken Brown <kbrow1i@gmail.com>
Subject: Re: New emacs maintainer for cygwin
Date: Wed, 20 May 2009 10:05:05 +0200	[thread overview]
Message-ID: <4A13B9B1.4090703@alice.it> (raw)

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




             reply	other threads:[~2009-05-20  8:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-20  8:05 Angelo Graziosi [this message]
2009-05-20 12:30 ` New emacs maintainer for cygwin Ken Brown
2009-05-20 12:46   ` Angelo Graziosi
  -- strict thread matches above, loose matches on Subject: below --
2009-05-20 22:19 Angelo Graziosi
2009-05-20 22:39 ` Ken Brown
2009-05-15 13:41 Ken Brown
2009-05-15 14:16 ` Eli Zaretskii
2009-05-15 14:35   ` Ken Brown
2009-05-15 14:42     ` Lennart Borgman
2009-05-15 14:55     ` Chong Yidong
2009-05-17  4:01     ` Stefan Monnier
2009-05-20  0:21   ` Ken Brown
2009-05-20  2:14     ` Stefan Monnier
2009-05-20  2:39       ` Ken Brown
2009-05-20 15:22         ` Stefan Monnier
2009-05-20 17:37           ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A13B9B1.4090703@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=emacs-devel@gnu.org \
    --cc=kbrow1i@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.