From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nozomu Ando Newsgroups: gmane.emacs.devel Subject: Re: Cannot bootstrap on NetBSD/cobalt Date: Wed, 08 Mar 2006 13:00:15 +0900 Message-ID: <86irqppovk.fsf@panel.jk.homeunix.org> References: <86k6b6wq88.fsf@panel.jk.homeunix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141790446 15370 80.91.229.2 (8 Mar 2006 04:00:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2006 04:00:46 +0000 (UTC) Cc: nakaji@takamatsu-nct.ac.jp Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 08 05:00:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGpqr-0000uF-8z for ged-emacs-devel@m.gmane.org; Wed, 08 Mar 2006 05:00:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGpqq-0003uX-Dy for ged-emacs-devel@m.gmane.org; Tue, 07 Mar 2006 23:00:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FGpqf-0003uH-Ak for emacs-devel@gnu.org; Tue, 07 Mar 2006 23:00:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FGpqd-0003tj-Nm for emacs-devel@gnu.org; Tue, 07 Mar 2006 23:00:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGpqd-0003te-I6 for emacs-devel@gnu.org; Tue, 07 Mar 2006 23:00:27 -0500 Original-Received: from [17.250.248.89] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FGptO-0000VE-6I for emacs-devel@gnu.org; Tue, 07 Mar 2006 23:03:18 -0500 Original-Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/8.12.11/smtpout02/MantshX 4.0) with ESMTP id k2840P2e003699; Tue, 7 Mar 2006 20:00:25 -0800 (PST) Original-Received: from panel.jk.homeunix.org (khp059134236077.ppp-bb.dion.ne.jp [59.134.236.77]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id k2840Hef023746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Mar 2006 20:00:24 -0800 (PST) Original-To: emacs-devel@gnu.org In-Reply-To: <86k6b6wq88.fsf@panel.jk.homeunix.org> (Nozomu Ando's message of "Tue, 07 Mar 2006 18:36:55 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51346 Archived-At: Nozomu Ando writes: > Even when building with this patch, we cannot execute emacs with X11 > dynamic link libraries. (crash in XtCreateWidget at startup, > as reported by NAKAJI-san in > http://www.m17n.org/mlarchive/mule-ja/200603/msg00035.html) > > But it seems OK for me when linked with X11 static libraries. I think I found a problem. On NetBSD-3.99.15/i386 (whose emacs with X11 works fine), objdump -h temacs shows: temacs: file format elf32-i386 : (snip) 5 .rel.data 00000010 0804c598 0804c598 00004598 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 6 .rel.got 00000040 0804c5a8 0804c5a8 000045a8 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 7 .rel.bss 00000080 0804c5e8 0804c5e8 000045e8 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 8 .rel.plt 00000e80 0804c668 0804c668 00004668 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA : (snip) However, on NetBSD-3.99.15/hpcmips (whose emacs with X11 crashes at startup), objdump -h temacs shows: temacs: file format elf32-tradlittlemips : (snip) 7 .rel.dyn 00000318 004328c0 004328c0 000328c0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA : (snip) (FYI: ld version is 2.16.1) It seems that ld for elf32-tradlittlemips igonores "-z nocombreloc" option or there are some restrictions of binutils around MIPS elf. And unexelf.c cannot unexec correctly without "-z nocombreloc" with X11 dynamic-link libraries, because "undo relocations" at unexelf.c:1221 does not work. Is there any MIPS elf platform whose emacs works fine with X11 dynamic-link library? What is the difference with NetBSD? Best regards, --- Nozomu Ando