summaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/debug.h
AgeCommit message (Collapse)Author
8 daysrtld: Switch to using <assert.h> for assertJohn Baldwin
The stock assert() works because rtld-libc includes a custom implementation of __assert(). Reviewed by: imp, kib Obtained from: CheriBSD Sponsored by: AFRL, DARPA Differential Revision: https://reviews.freebsd.org/D54712
2023-08-16Remove $FreeBSD$: two-line .h patternWarner Losh
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2023-07-09rtld-elf: Reuse _BASENAME_RTLD for debug.h rather than duplicating logicJessica Clarke
Reviewed by: kib, brooks, jhb Differential Revision: https://reviews.freebsd.org/D40919
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
2019-06-26Use rtld_putstr() instead of write() for the rtld msg() macroAlex Richardson
This removes an unnecessary libc dependency from rtld. See https://reviews.freebsd.org/D20663 for more details. Notes: svn path=/head/; revision=349417
2019-04-14ld-elf.so: make LD_DEBUG always functional.Konstantin Belousov
This causes some increase of the dynamic linker size, but benefits of avoiding compiling private copy or the linker when debugging is required. definitely worth it. The dbg() calls can be compiled out by defining LD_NO_DEBUG symbol. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=346216
2017-11-27libexec: adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326274
2015-05-06Remove historical GNUC testEd Maste
The requirement is for a GCC-compatible compiler and not necessarily GCC itself. However, we currently expect any compiler used for building the whole of FreeBSD to be GCC-compatible and many things will break if not; there's no longer a need to have an explicit test for this in rtld. Reviewed by: imp, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2422 Notes: svn path=/head/; revision=282551
2006-03-28Use C99's varadic macro syntax instead of gcc's.Dag-Erling Smørgrav
Notes: svn path=/head/; revision=157219
2004-03-21Add initial support for compiling a special 32 bit version ofPeter Wemm
ld-elf.so.1 on 64 bit systems. Most of this involves using alternate paths, environment variables and diagnostic messages. The build glue is seperate. Notes: svn path=/head/; revision=127250
2001-07-26Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. TheSheldon Hearn
definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms> Notes: svn path=/head/; revision=80381
1999-12-27Add a new function dllockinit() for registering thread lockingJohn Polstra
functions to be used by the dynamic linker. This can be called by threads packages at start-up time. I will add the call to libc_r soon. Also add a default locking method that is used up until dllockinit() is called. The default method works by blocking SIGVTALRM, SIGPROF, and SIGALRM in critical sections. It is based on the observation that most user-space threads packages implement thread preemption with one of these signals (usually SIGVTALRM). The dynamic linker has never been reentrant, but it became less reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c". Starting with that revision, multiple threads each doing lazy binding could interfere with each other. The usual symptom was that a symbol was falsely reported as undefined at start-up time. It was rare but not unseen. This commit fixes it. Notes: svn path=/head/; revision=55122
1999-09-04Enable -Wformat checking for debug_printf().John Polstra
Notes: svn path=/head/; revision=50930
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50476
1998-03-07Import the ELF dynamic linker. This is the ElfKit version withJohn Polstra
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