From owner-freebsd-ports Fri Oct 2 02:37:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA23725 for freebsd-ports-outgoing; Fri, 2 Oct 1998 02:37:52 -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 CAA23717 for ; Fri, 2 Oct 1998 02:37:47 -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 SAA07440 for ; Fri, 2 Oct 1998 18:37:25 +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 SAA19025 for ; Fri, 2 Oct 1998 18:37:24 +0900 (JST) To: freebsd-ports@FreeBSD.ORG Subject: Re: ports/8090: ELF patch for editors/emacs (emacs-19.34b) From: TAOKA Satoshi In-Reply-To: Your message of "Wed, 30 Sep 1998 01:10:01 -0700 (PDT)" <199809300810.BAA14805@freefall.freebsd.org> References: <199809300810.BAA14805@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: <19981002183724E.taoka@infonets.hiroshima-u.ac.jp> Date: Fri, 02 Oct 1998 18:37:24 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 49 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From: TAOKA Satoshi Subject: Re: ports/8090: ELF patch for editors/emacs (emacs-19.34b) Date: Wed, 30 Sep 1998 01:10:01 -0700 (PDT) Message-ID: <199809300810.BAA14805@freefall.freebsd.org> > The following reply was made to PR ports/8090; it has been noted by GNATS. > > From: TAOKA Satoshi > To: freebsd-gnats-submit@freebsd.org > Cc: Subject: Re: ports/8090: ELF patch for editors/emacs (emacs-19.34b) > Date: Wed, 30 Sep 1998 17:09:22 +0900 On FreeBSD 3.0-19980921-BETA, there is no problem for emacs applyed patch-ac and patch-ae in the previous two PR's. On the other hand, the emacs has the following problems under FreeBSD 3.0-19980928-BETA. % strip emacs BFD: stZ17208: warning: allocated section `.data' not in segment BFD: stZ17208: warning: allocated section `.bss' not in segment % emacs segmentation fault (core dumped) So here is new patch-ae to solve these. --- 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 - || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0) + || strcmp ((char *) (symnames + symp->st_name), "end") == 0 + || strcmp ((char *) (symnames + symp->st_name), "_edata") == 0 + || 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