1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/gnu/usr.bin/ld/rtld
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
..
Makefile Get rid of the dynamic linker's internal malloc package, and arrange 1997-11-29 03:32:48 +00:00
md-prologue.c Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
rtld.1 spelling corrections. 1997-09-13 16:01:53 +00:00
rtld.c Make emacs work again. This is a workaround for the fact that the 1997-12-05 02:06:37 +00:00