aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf
Commit message (Collapse)AuthorAgeFilesLines
* MFC 1.3 -> 1.4: Make the default locking work with JDK and pthreads.John Polstra2000-01-281-8/+10
| | | | Notes: svn path=/stable/3/; revision=56757
* MFC 1.41 -> 1.42: Treat white space as a separator in LD_PRELOAD.John Polstra2000-01-251-3/+4
| | | | Notes: svn path=/stable/3/; revision=56567
* Sync with -current: add locking support to the dynamic linker.John Polstra2000-01-216-110/+299
| | | | Notes: svn path=/stable/3/; revision=56358
* This commit was manufactured by cvs2svn to create branch 'RELENG_3'.cvs2svn2000-01-171-0/+87
| | | | Notes: svn path=/stable/3/; revision=56172
* MFC: fixes for dlopen() which allow mozilla to actually work in -stable.Jordan K. Hubbard1999-12-175-109/+328
| | | | | | | /usr/bin/id ran just fine after these changes, so jdp says "ship it." :) Notes: svn path=/stable/3/; revision=54712
* MFC 1.38 -> 1.39: Fix comment describing shared library searchJohn Polstra1999-11-191-1/+1
| | | | | | | order. Notes: svn path=/stable/3/; revision=53401
* MFC 1.37 -> 1.38: Change the warning about unrecognized entries inJohn Polstra1999-09-061-2/+2
| | | | | | | | | | the dynamic table to a debug message. PR: bin/12849 Approved by: jkh Notes: svn path=/stable/3/; revision=51024
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2914-14/+14
| | | | Notes: svn path=/stable/3/; revision=50572
* MFC 1.29 -> 1.30: Fix segmentation violations in certain obscureJohn Polstra1999-08-221-6/+6
| | | | | | | cases involving failed dlopens. Notes: svn path=/stable/3/; revision=50169
* MFC: Change many asserts into normal errors. Enable format stringJohn Polstra1999-08-223-39/+65
| | | | | | | | | | | mismatch checking for _rtld_error(). map_object.c: 1.2 -> 1.3 rtld.c: 1.28 -> 1.29 rtld.h: 1.6 -> 1.7 Notes: svn path=/stable/3/; revision=50168
* MFC 1.6 -> 1.7: Mark my turf as maintainer.John Polstra1999-08-221-1/+2
| | | | Notes: svn path=/stable/3/; revision=50166
* MFC 1.26 -> 1.27: Cleanup properly after a failed dlopen().John Polstra1999-07-141-38/+44
| | | | | | | | PR: bin/12471 Submitted by: Max Khon <fjoe@iclub.nsu.ru> Notes: svn path=/stable/3/; revision=48808
* MFC 1.27 -> 1.28: Bugfix for dladdr() and dlsym(RTLD_NEXT, ...).John Polstra1999-07-141-2/+2
| | | | Notes: svn path=/stable/3/; revision=48807
* MFC 1.5 -> 1.6: Handle R_ALPHA_NONE relocations.John Polstra1999-07-141-1/+4
| | | | Notes: svn path=/stable/3/; revision=48806
* MFC 1.25 -> 1.26: Make it possible to debug the _init functions.John Polstra1999-07-081-3/+3
| | | | Notes: svn path=/stable/3/; revision=48684
* MFC: Fix serious performance bug for large programs with multipleJohn Polstra1999-06-295-77/+201
| | | | | | | GOTs. Notes: svn path=/stable/3/; revision=48332
* MFC 1.24 -> 1.25: Fix reference counting problem.John Polstra1999-06-251-3/+4
| | | | | | | PR: bin/12129 Notes: svn path=/stable/3/; revision=48209
* MFC: Use realhostname() and trimdomain().Brian Somers1999-05-022-2/+2
| | | | | | | | | | main() returns int Silence egcs (yeah, I know....) Reprompt if given an empty login name in uucpd Correct errno handling in uucpd. Notes: svn path=/stable/3/; revision=46281
* MFC 1.21 -> 1.22: Initialize "__progname" and "environ" beforeJohn Polstra1999-04-281-7/+33
| | | | | | | calling _init() functions. Notes: svn path=/stable/3/; revision=46134
* MFC 1.20 -> 1.21: Give RPATH precedence over LD_LIBRARY_PATH, as perJohn Polstra1999-04-281-4/+4
| | | | | | | the ELF spec. Notes: svn path=/stable/3/; revision=46132
* MFC (1999/04/08 17:28:44 PDT):John Polstra1999-04-287-89/+99
| | | | | | | | | Isolate architecture dependencies better. Eliminate some asm(). Make the dynamic linker work if it is built as an executable. Notes: svn path=/stable/3/; revision=46131
* MFC 1.18 -> 1.19: Fix typos in comments.John Polstra1999-04-281-3/+3
| | | | Notes: svn path=/stable/3/; revision=46128
* This commit was manufactured by cvs2svn to create branch 'RELENG_3'.cvs2svn1999-04-155-0/+208
| | | | Notes: svn path=/stable/3/; revision=45700
* MFC 1.16 -> 1.17: Resolve undefined weak references to 0.John Polstra1999-04-071-1/+13
| | | | Notes: svn path=/stable/3/; revision=45414
* MFC 1.15 -> 1.16: Handle NULL argv.John Polstra1999-04-071-2/+2
| | | | Notes: svn path=/stable/3/; revision=45413
* MFC: Correct dladdr() functionality.Nate Williams1999-03-241-7/+14
| | | | Notes: svn path=/stable/3/; revision=45019
* MFC: Install with -fschg to protect the loader from accidental removal.Nate Williams1999-03-241-2/+3
| | | | Notes: svn path=/stable/3/; revision=45017
* MFC: dladdr(3) support.Nate Williams1999-03-241-1/+47
| | | | Notes: svn path=/stable/3/; revision=45016
* This commit was manufactured by cvs2svn to create branch 'RELENG_3'.cvs2svn1999-01-213-548/+0
| | | | Notes: svn path=/stable/3/; revision=42951
* Use the runpath of the main program for locating libraries loaded byDoug Rabson1998-11-271-2/+2
| | | | | | | | | dlopen(). Reviewed by: jdp Notes: svn path=/head/; revision=41374
* Fix a bug in dlclose that broke the apache13 port. The list ofJohn Polstra1998-10-131-1/+2
| | | | | | | loaded objects wasn't being maintained properly. Notes: svn path=/head/; revision=40280
* Make LD_PRELOAD work for ELF.John Polstra1998-09-221-1/+38
| | | | Notes: svn path=/head/; revision=39551
* Fix a bug that showed up when debugging dynamically linked programs.John Polstra1998-09-161-3/+13
| | | | | | | | | | | | | | | | | | | | | | 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. It was suggested by Doug Rabson, though I implemented it a little differently. I personally would prefer to leave the dynamic linker's entry out of the GDB search list altogether. But Doug argues that it is handy there for such things as setting breakpoints on dlopen(). So it stays for now, at least. Note, if we ever integrate the dynamic linker with libc (which has several important benefits to recommend it), this whole problem goes away. Notes: svn path=/head/; revision=39321
* Make the pathname pointed to by the Obj_Entry structure for theJohn Polstra1998-09-151-3/+11
| | | | | | | | | dynamic linker itself dynamically allocated. All of them are supposed to be dynamically allocated, but we cheated before. It made gdb unhappy under some circumstances. Notes: svn path=/head/; revision=39306
* Update to the binutils-2.9.1 PLT format.Doug Rabson1998-09-111-2/+4
| | | | Notes: svn path=/head/; revision=39081
* Add the r_addend of the relocation when processing GLOB_DAT relocations.Doug Rabson1998-09-111-3/+3
| | | | Notes: svn path=/head/; revision=39080
* Fix a cut&paste error which prevented LD_BIND_NOW from working.Doug Rabson1998-09-081-2/+2
| | | | Notes: svn path=/head/; revision=38940
* Implement ldconfig functionality for ELF. The hints are stored inJohn Polstra1998-09-051-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints". These hints consist only of the directory search path. There is no hash table as in the a.out hints, because ELF doesn't have to search for the file with the highest minor version number. (It doesn't have minor version numbers at all.) A single run of ldconfig updates either the a.out hints or the ELF hints, but not both. The set of hints to process is selected in the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout" or "-elf" command line option. The rationale is that you probably want to search different directories for ELF than for a.out. "ldconfig -r" is faked up to produce output like we are used to, except that for ELF there are no minor version numbers. This should enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports even for ELF. I implemented the ELF functionality in a new source file, with an eye toward eliminating the a.out code entirely at some point in the future. Notes: svn path=/head/; revision=38836
* Add alpha support.Doug Rabson1998-09-0411-277/+1145
| | | | | | | | Submitted by: John Birrell <jb@cimlogic.com.au> (with extra hacks by me) Obtained from: Probably NetBSD Notes: svn path=/head/; revision=38816
* Suppress duplicate entries in ldd output.John Polstra1998-09-022-12/+12
| | | | Notes: svn path=/head/; revision=38740
* Style fixes. If it seems like a lot of lines of changes, it'sJohn Polstra1998-09-021-75/+79
| | | | | | | | because I moved some functions. Mr. Tidy likes them to be in alphabetical order. Notes: svn path=/head/; revision=38739
* Handle dlsym(NULL, ...) properly, by searching in the caller'sJohn Polstra1998-09-021-11/+26
| | | | | | | | | | | shared object. Note, this searches _only_ that object, and not its needed objects, in accordance with the documentation. Also fix dlopen(NULL, ...) so that the executable's needed objects are searched as well as the executable itself. Notes: svn path=/head/; revision=38737
* Update this header to use the revamped elf headers which select Elf32John Birrell1998-08-211-12/+12
| | | | | | | | | | | | or Elf64 based on the inclusion of the machine dependent header. I've left the addition of the extra fields to handle the relocation structures with addend for a separate commit after jdp has had a chance to review what I've done. The current change is needed to compile csu/alpha/crt1.c Notes: svn path=/head/; revision=38467
* Add "-C" to INSTALLFLAGS to install atomically. An elf->elfJohn Polstra1998-08-171-1/+3
| | | | | | | | installworld dies at this point otherwise, leaving the system without a dynamic linker. Notes: svn path=/head/; revision=38377
* Add support for ldd.Doug Rabson1998-05-011-5/+106
| | | | Notes: svn path=/head/; revision=35574
* Add GDB support. The method and some of the code came from NetBSD's elfDoug Rabson1998-04-303-22/+102
| | | | | | | runtime linker. Notes: svn path=/head/; revision=35529
* Import the ELF dynamic linker. This is the ElfKit version withJohn Polstra1998-03-0710-0/+2486
| | | | | | | | | | 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
* spelling corrections.Wolfram Schneider1997-09-131-3/+3
| | | | | | | | PR: docs/4450 Submitted by: josh@quick.net Notes: svn path=/head/; revision=29329
* Typo fix.Masafumi Max NAKANE1997-05-271-3/+3
| | | | | | | | PR: 3693 Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp> Notes: svn path=/head/; revision=26195
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22996