[Top][All Lists]

[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)

        GNU Emacs dumps core unless -nw.

        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.



Pkgsrc (http://www.pkgsrc.org/) had a problem that Emacs died when
it's built with the newest GNU ld (  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).


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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]