[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU Emacs vs. newer GNU ld
From: |
Masao Uebayashi |
Subject: |
GNU Emacs vs. newer GNU ld |
Date: |
Mon, 16 Jun 2003 21:00:30 +0900 (JST) |
Synopsis:
GNU Emacs dumps core unless -nw.
Environment:
NetBSD 1.6Q or later, with older Pkgsrc tree.
(But this problem probably happens on any other OSes.)
How to repeat:
Build GNU Emacs with X support using the newest GNU Binutils.
Invoke it as "emacs". It dies.
How to fix:
Pass the "-nocombreloc" option to ld.
Description:
Hello.
Pkgsrc (http://www.pkgsrc.org/) had a problem that Emacs died when
it's built with the newest GNU ld (2.13.2.1). We noticed that this is
caused by an ld's new feature that:
it combines "reloc" sections into a single .rel.dyn section
(presumably to speed up dynamic loading). Secondly, rather
than using a copy reloc in the .bss section for
widgetClassRec, it uses a reloc in the .data section for this
reference (ditto).
(http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=20660)
Now we have a fix as a local diff, but this can be fixed in the
original. (XEmacs already has the fix.)
I'll try to post a proper diff later, which is good enough for you to
incorporate, if no one will do. But I'm not so familar with GNU
Autoconf, and am not sure if I can do soon. I'll appreciate if you
fix the problem appropriately.
Thank you very much.
Masao
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GNU Emacs vs. newer GNU ld,
Masao Uebayashi <=