unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Masao Uebayashi <uebayasi@pultek.co.jp>
Subject: GNU Emacs vs. newer GNU ld
Date: Mon, 16 Jun 2003 21:00:30 +0900 (JST)	[thread overview]
Message-ID: <20030616.210030.50045743.uebayasi@pultek.co.jp> (raw)

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

                 reply	other threads:[~2003-06-16 12:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20030616.210030.50045743.uebayasi@pultek.co.jp \
    --to=uebayasi@pultek.co.jp \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).