From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ali Bahrami Newsgroups: gmane.emacs.devel Subject: Question about dumping emacs under Solaris Date: Thu, 03 Jul 2008 22:06:29 -0600 Message-ID: <486DA1C5.7030304@emvision.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215144414 24700 80.91.229.12 (4 Jul 2008 04:06:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 04:06:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 04 06:07:41 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KEcaC-0002Vl-FK for ged-emacs-devel@m.gmane.org; Fri, 04 Jul 2008 06:07:40 +0200 Original-Received: from localhost ([127.0.0.1]:35595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEcZL-0001mz-SD for ged-emacs-devel@m.gmane.org; Fri, 04 Jul 2008 00:06:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEcZG-0001mb-PD for emacs-devel@gnu.org; Fri, 04 Jul 2008 00:06:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEcZG-0001mK-4b for emacs-devel@gnu.org; Fri, 04 Jul 2008 00:06:42 -0400 Original-Received: from [199.232.76.173] (port=52726 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEcZF-0001mH-Vz for emacs-devel@gnu.org; Fri, 04 Jul 2008 00:06:42 -0400 Original-Received: from vc7-1-94b.dsl.netrack.net ([199.45.162.234]:12799 helo=emvision.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEcZF-0001SJ-Cv for emacs-devel@gnu.org; Fri, 04 Jul 2008 00:06:41 -0400 Original-Received: from pod.emvision.com (pod.emvision.com [198.182.198.2]) by emvision.com (8.13.6/8.13.6) with ESMTP id m6446TM1027443 for ; Thu, 3 Jul 2008 22:06:39 -0600 (MDT) User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (emvision.com [198.182.198.5]); Thu, 03 Jul 2008 22:06:39 -0600 (MDT) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:100327 Archived-At: Hello, I have a question about how emacs is dumped under Solaris. In the file emacs/src/s/sol-2-6.h: /* Handle Solaris 2.6. */ #include "sol2-5.h" #if 0 /* dldump does not handle all the extensions used by GNU ld. */ #undef UNEXEC #define UNEXEC unexsol.o #endif This ifdef prevents the unexsol.c code, containing a call to dldump(), from being used. Instead, the generic ELF unexec code is used. Looking at the RCS revisions, I see that dldump() was disabled in revision 1.3 of the file, dating from September 13, 2002. Can anyone shed any light on what GNU ld extensions are not properly handled by the Solaris dldump()? I know that 2002 was a while ago, and possibly no one remembers, but it would be helpful to know what went wrong. I work at Sun, on the linker. We've discussed this, and are at a loss as to what the problem might be. dldump() is pretty generic, and nothing leaps out as being unable to support GNU ld objects. There are some differences between the ELF objects produced by the Solaris and GNU, but they tend to be pretty compatible for the most part. In addition to satisfying my curiosity, I may be able to fix whatever is missing. Any such changes would of course be released with OpenSolaris as free source code. Thanks for your help. - Ali