From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Masao Uebayashi Newsgroups: gmane.emacs.bugs Subject: GNU Emacs vs. newer GNU ld Date: Mon, 16 Jun 2003 21:00:30 +0900 (JST) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030616.210030.50045743.uebayasi@pultek.co.jp> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1055765083 13421 80.91.224.249 (16 Jun 2003 12:04:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2003 12:04:43 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 14:04:40 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Rsic-0003TH-00 for ; Mon, 16 Jun 2003 14:04:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Rskz-00039W-Fv for gnu-bug-gnu-emacs@m.gmane.org; Mon, 16 Jun 2003 08:06:41 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19RskT-0002vy-3O for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2003 08:06:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Rsh1-0001SF-DM for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2003 08:02:35 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19RsgK-0000y8-8O for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2003 08:01:52 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.20) id 19RsgK-0004F9-0x for bug-emacs@gnu.org; Mon, 16 Jun 2003 08:01:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19RsgE-0000sZ-Ae for bug-emacs@gnu.org; Mon, 16 Jun 2003 08:01:48 -0400 Original-Received: from rm8.plala.or.jp ([210.153.0.139]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19RsfB-0000Jd-7f for bug-emacs@gnu.org; Mon, 16 Jun 2003 08:00:41 -0400 Original-Received: from neptune.tky.plala.or.jp (neptune.tky.plala.or.jp [210.153.1.204]) by rm8.plala.or.jp (mst000105) with ESMTP id h5GC0YB19632 for ; Mon, 16 Jun 2003 21:00:34 +0900 (JST) Original-Received: from localhost (o192101.ap.plala.or.jp [219.167.192.101]) by neptune.tky.plala.or.jp (3.7W/usr030612) with ESMTP id h5GC0Xo28510 for ; Mon, 16 Jun 2003 21:00:33 +0900 (JST) (envelope-from uebayasi@pultek.co.jp) Original-To: bug-emacs@gnu.org X-Mailer: Mew version 3.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5316 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5316 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