freebsd-dev/gnu/usr.bin/ld
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
..
i386 Fix a bug that caused the relocs for linker set members in shared 1997-04-30 05:18:08 +00:00
ldconfig Add -R (rescan or refresh) option to rescan and rebuild the hints 1997-08-22 04:42:12 +00:00
ldd In the "ldd -v" output, display the N_AUX information for each 1997-11-28 19:34:27 +00:00
rtld Make emacs work again. This is a workaround for the fact that the 1997-12-05 02:06:37 +00:00
sparc
dynamic.h Changes to support the kernel linker: 1997-05-13 10:23:47 +00:00
ld.1 .Ar -l -> .Fl l 1997-08-23 21:59:41 +00:00
ld.1aout .Ar -l -> .Fl l 1997-08-23 21:59:41 +00:00
ld.c Changes to support the kernel linker: 1997-05-13 10:23:47 +00:00
ld.h
lib.c
Makefile Configure static linkage in the normal way (default to -static using 1997-06-29 21:36:33 +00:00
PORTING
rrs.c Changes to support the kernel linker: 1997-05-13 10:23:47 +00:00
shlib.c
shlib.h
support.c
support.h
symbol.c
symseg.h
warnings.c
xbits.c