From owner-freebsd-ports Sat Oct 10 05:41:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA03202 for freebsd-ports-outgoing; Sat, 10 Oct 1998 05:41:57 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from diana.infonets.hiroshima-u.ac.jp (diana.infonets.hiroshima-u.ac.jp [133.41.33.53]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA03196; Sat, 10 Oct 1998 05:41:53 -0700 (PDT) (envelope-from taoka@infonets.hiroshima-u.ac.jp) Received: from cal.infonets.hiroshima-u.ac.jp (cal.infonets.hiroshima-u.ac.jp [133.41.33.61]) by diana.infonets.hiroshima-u.ac.jp (8.8.8/3.6W) with ESMTP id VAA10758; Sat, 10 Oct 1998 21:41:42 +0900 (JST) Received: from localhost (localhost.infonets.hiroshima-u.ac.jp [127.0.0.1]) by cal.infonets.hiroshima-u.ac.jp (8.8.8/3.6W) with ESMTP id VAA02973; Sat, 10 Oct 1998 21:41:42 +0900 (JST) To: steve@FreeBSD.ORG Cc: freebsd-ports@FreeBSD.ORG Subject: a stripped emacs cannot run (Re: ports/8090) From: TAOKA Satoshi In-Reply-To: Your message of "Fri, 9 Oct 1998 21:37:37 -0700 (PDT)" <199810100437.VAA19778@freefall.freebsd.org> References: <199810100437.VAA19778@freefall.freebsd.org> X-Mailer: Mew version 1.93 on XEmacs 20.4 (Emerald) X-Prom-Mew: Prom-Mew 1.93 (procmail reader for Mew) X-URL: http://www.infonets.hiroshima-u.ac.jp/~taoka/ Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19981010214141Z.taoka@infonets.hiroshima-u.ac.jp> Date: Sat, 10 Oct 1998 21:41:41 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 40 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Synopsis: ELF patch for editors/emacs (emacs-19.34b) > > State-Changed-From-To: open-closed > State-Changed-By: steve By the committed patch-ae, a stripped emacs cannot run (if not stripped then it has no problem). So please apply the next patch. - S. Taoka --- patches/patch-ae.org Sat Oct 10 13:37:24 1998 +++ patches/patch-ae Sat Oct 10 21:24:28 1998 @@ -1,6 +1,16 @@ ---- orig/unexelf.c Wed Jul 17 07:39:03 1996 -+++ src/unexelf.c Wed Sep 30 09:35:47 1998 -@@ -845,7 +845,9 @@ +--- src/unexelf.c.orig Fri Oct 2 12:55:43 1998 ++++ src/unexelf.c Fri Oct 2 13:02:05 1998 +@@ -678,7 +678,8 @@ + if (n < 0) + fatal ("Couldn't find segment next to .bss in %s\n", old_name, 0); + +- NEW_PROGRAM_H (n).p_filesz += new_data2_size; ++/* NEW_PROGRAM_H (n).p_filesz += new_data2_size; */ ++ NEW_PROGRAM_H (n).p_filesz = new_bss_addr - NEW_PROGRAM_H (n).p_vaddr; /* From emacs 20.3 */ + NEW_PROGRAM_H (n).p_memsz = NEW_PROGRAM_H (n).p_filesz; + + #if 0 /* Maybe allow section after data2 - does this ever happen? */ +@@ -845,7 +846,9 @@ for (; symp < symendp; symp ++) if (strcmp ((char *) (symnames + symp->st_name), "_end") == 0 @@ -10,3 +20,4 @@ + || strcmp ((char *) (symnames + symp->st_name), "edata") == 0) memcpy (&symp->st_value, &new_bss_addr, sizeof (new_bss_addr)); } + To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message