Subject: CVS commit: src/libexec/ld.elf_so
To: None <source-changes@NetBSD.org>
From: Nick Hudson <skrll@netbsd.org>
List: source-changes
Date: 01/12/2006 22:40:17
Module Name:	src
Committed By:	skrll
Date:		Thu Jan 12 22:40:17 UTC 2006

Modified Files:
	src/libexec/ld.elf_so: rtld.c

Log Message:
Bring across a change from FreeBSD from back in 1998:

"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."

"printf" isn't true for us, but various libc symbols are, e.g. "malloc".

Fixes PR 32074 as noted by uwe@

OK'd by christos@


To generate a diff of this commit:
cvs rdiff -r1.108 -r1.109 src/libexec/ld.elf_so/rtld.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.