Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 1998 21:41:41 +0900
From:      TAOKA Satoshi <taoka@infonets.hiroshima-u.ac.jp>
To:        steve@FreeBSD.ORG
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   a stripped emacs cannot run (Re: ports/8090)
Message-ID:  <19981010214141Z.taoka@infonets.hiroshima-u.ac.jp>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981010214141Z.taoka>