Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 1997 19:32:48 -0800 (PST)
From:      John Polstra <jdp@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-gnu@FreeBSD.ORG
Subject:   cvs commit: src/gnu/usr.bin/ld/rtld Makefile rtld.c malloc.c sbrk.c
Message-ID:  <199711290332.TAA02882@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jdp         1997/11/28 19:32:48 PST

  Modified files:
    gnu/usr.bin/ld/rtld  Makefile rtld.c 
  Removed files:
    gnu/usr.bin/ld/rtld  malloc.c sbrk.c 
  Log:
  Get rid of the dynamic linker's internal malloc package, and arrange
  things so that it uses the same malloc as is used by the program
  being executed.  This has several advantages, the big one being
  that you can now debug core dumps from dynamically linked programs
  and get useful information out of them.  Until now, that didn't
  work.  The internal malloc package placed the tables describing
  the loaded shared libraries in a mapped region of high memory that
  was not written to core files.  Thus the debugger had no way of
  determining what was loaded where in memory.  Now that the dynamic
  linker uses the application's malloc package (normally, but not
  necessarily, the system malloc), its tables end up in the regular
  heap area where they will be included in core dumps.  The debugger
  now works very well indeed, thank you very much.
  
  Also ...
  
  Bring the program a little closer to conformance with style(9).
  There is still a long way to go.
  
  Add minimal const correctness changes to get rid of compiler warnings
  caused by the recent const changes in <dlfcn.h> and <link.h>.
  
  Improve performance by eliminating redundant calculations of symbols'
  hash values.
  
  Revision  Changes    Path
  1.25      +4 -5      src/gnu/usr.bin/ld/rtld/Makefile
  1.50      +470 -262  src/gnu/usr.bin/ld/rtld/rtld.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711290332.TAA02882>