freebsd-nq/libexec/rtld-elf
John Polstra 29218d94d3 Fix a bug that showed up when debugging dynamically linked programs.
References from GDB to "printf" and various other functions would
find the versions in the dynamic linker itself, rather than the
versions in the program's libc.  This fix moves the GDB link map
entry for the dynamic linker to the end of the search list, where
its symbols will be found only if they are not found anywhere else.
It was suggested by Doug Rabson, though I implemented it a little
differently.

I personally would prefer to leave the dynamic linker's entry out
of the GDB search list altogether.  But Doug argues that it is
handy there for such things as setting breakpoints on dlopen().
So it stays for now, at least.

Note, if we ever integrate the dynamic linker with libc (which has
several important benefits to recommend it), this whole problem
goes away.
1998-09-16 02:54:08 +00:00
..
alpha Update to the binutils-2.9.1 PLT format. 1998-09-11 18:31:55 +00:00
amd64 Add alpha support. 1998-09-04 19:03:57 +00:00
i386 Add alpha support. 1998-09-04 19:03:57 +00:00
debug.c
debug.h
Makefile Add alpha support. 1998-09-04 19:03:57 +00:00
malloc.c Add alpha support. 1998-09-04 19:03:57 +00:00
map_object.c Add alpha support. 1998-09-04 19:03:57 +00:00
rtld.1
rtld.c Fix a bug that showed up when debugging dynamically linked programs. 1998-09-16 02:54:08 +00:00
rtld.h Add alpha support. 1998-09-04 19:03:57 +00:00
xmalloc.c