aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/debug.c
Commit message (Collapse)AuthorAgeFilesLines
* Rtld links with the specially built pic static libc library to get someKonstantin Belousov2011-08-241-12/+12
| | | | | | | | | | | | | | | | | | | | C runtime services, like printf(). Unfortunately, the multithread-safeness measures in the libc do not work in rtld environment. Rip the kernel printf() implementation and use it in the rtld instead of libc version. This printf does not require any shared global data and thus is mt-safe. Systematically use rtld_printf() and related functions, remove the calls to err(3). Note that stdio is still pulled from libc due to libmap implementaion using fopen(). This is safe but unoptimal, and can be changed later. Reported and tested by: pgj Diagnosed and reviewed by: kan (previous version) Approved by: re (bz) Notes: svn path=/head/; revision=225152
* Fix warnings on 64 bit platforms.Matthew N. Dodd2003-06-191-9/+9
| | | | | | | Noticed by: jake Notes: svn path=/head/; revision=116582
* Provide a mechanism for dumping relocation information.Matthew N. Dodd2003-06-191-0/+91
| | | | | | | | | | Setting the LD_DUMP_REL_PRE or LD_DUMP_REL_POST environment variables cause rtld-elf to output a table of all relocations. This is useful for debugging. Notes: svn path=/head/; revision=116563
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Import the ELF dynamic linker. This is the ElfKit version withJohn Polstra1998-03-071-0/+52
quite a few enhancements and bug fixes. There are still some known deficiencies, but it should be adequate to get us started with ELF. Submitted by: John Polstra <jdp@polstra.com> Notes: svn path=/cvs2svn/branches/JDP/; revision=34192