From cb435fa9192c863352e4183d10953e0566a2e0bd Mon Sep 17 00:00:00 2001 From: John Polstra Date: Wed, 14 Jul 1999 04:09:11 +0000 Subject: [PATCH] Change the symbol used to find the end of an object's address space from "end" to "_end". The former does not exist in most shared libraries. This fixes problems in dladdr() and dlsym(RTLD_NEXT, ...). --- libexec/rtld-elf/rtld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 8a69de136bb0..313e8ef0bb4f 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -22,7 +22,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: rtld.c,v 1.26 1999/07/03 23:54:02 jdp Exp $ + * $Id: rtld.c,v 1.27 1999/07/09 16:22:55 jdp Exp $ */ /* @@ -60,7 +60,7 @@ #define msg(s) (write(1, s, strlen(s))) #define trace() msg("trace: " __XSTRING(__LINE__) "\n"); -#define END_SYM "end" +#define END_SYM "_end" /* Types. */ typedef void (*func_ptr_type)();