1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/gnu
John Polstra 6210388a93 Make emacs work again. This is a workaround for the fact that the
emacs a.out file, self-generated by emacs's "unexec" function in
"unexsunos4.c", is invalid.  In particular, its "_end" symbol has
the wrong value.  The dynamic linker was using the value of that
symbol to initialize its sbrk break level.

The workaround is to peek at the executable's a.out header in
memory, and calculate what "_end" should be based on the segment
sizes.

I will work out a fix for emacs and send it to the FSF.  This
dynamic linker workaround is still worthwhile, if only to avoid
forcing all emacs users to build a new version.

Note: xemacs gives a bogus warning at startup, for related reasons.
The warning is harmless and can safely be ignored.  I will send a
patch to the xemacs maintainers to get rid of it, and meanwhile
add a patch file to our port.
1997-12-05 02:06:37 +00:00
..
gnu2bmake Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00
include Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00
lib <gnuregex.h> is rather old and breaks AWK's regex matching. Use a newer 1997-10-19 13:39:55 +00:00
libexec Include optional support for HDB-style config files, so the true masochists 1997-10-07 07:23:28 +00:00
usr.bin Make emacs work again. This is a workaround for the fact that the 1997-12-05 02:06:37 +00:00
usr.sbin Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00
COPYING
COPYING.LIB
Makefile Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00