summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfy ldconfig and the aout bits it still uses from rtld-aout.ed2009-12-292-28/+10
| | | | (Why is aout support still there?)
* 64-bit clean + WARNS=6:delphij2005-01-142-5/+4
| | | | | | | | | | | | | | | | | - Convert the (char *) cast+cast backs magic to memcpy(3). Without this, the resulting code is potentially risky with higher optimization levels. - Avoid same name when calling local variables, as well as global symbols. This reduces confusion for both human and compiler. - Add necessary casts, consts - Use new style function defination. - Minor style.Makefile(5) tweak - Bump WARNS?= from 0 to 6 ** for the aout code: changes are intentionally limited to ease maintaince.
* Restore these files to make ldconfig(8) happy.trhodes2005-01-114-0/+504
|
* Remove a.out runtime linker. It doesn't build and was removed from thetrhodes2005-01-1113-4456/+0
| | | | | | | | | | build over two years ago by peter. The binary a.out version of ld.so can be obtained from misc/compat22 or src/lib/compat/compat22. Discussed on: -arch Voted yes: jhb, ru, linimon, delphij
* Introduce the PRECIOUSPROG knob in bsd.prog.mk, similarru2004-11-031-1/+2
| | | | | | | | to PRECIOUSLIB from bsd.lib.mk. The side effect of this is making installing the world under jail(8) possible by using another knob, NOFSCHG. Reviewed by: oliver
* Mechanically kill hard sentence breaks.ru2004-07-021-8/+16
|
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-012-2/+2
| | | | especially in troff files.
* Uniformly refer to a file system as "file system".ru2002-12-121-2/+2
| | | | Approved by: re
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-1/+1
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-281-23/+2
|
* Change brk's prototype from char *brk(const char *) to int brk(const void *)dwmalone2002-01-241-1/+1
| | | | | | | | | | | | | | | and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations. Also remove local declarations of sbrk and unnecessary casting. PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month
* Fixed some of style bugs.ru2001-09-121-1/+1
|
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. Thesheldonh2001-07-261-1/+1
| | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms>
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-2/+2
|
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-1/+1
| | | | - MAN[1-9] -> MAN.
* mdoc(7) police: simplify construct.ru2001-02-141-3/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-13/+8
|
* Prepare for mdoc(7)NG.ru2001-01-161-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-271-1/+1
|
* Add `_PATH_DEVZERO'.obrien2000-12-091-2/+3
| | | | Use _PATH_* where where possible.
* Move the man pages for the a.out dynamic linker into the 1aoutjdp2000-01-292-227/+2
| | | | | | | section. I created rtld.1aout earlier with a repository copy. This clears the way for the ELF dynamic linker man page, which I will commit next.
* .Nm += "rtld"phantom1999-09-282-2/+4
| | | | apropos(1) now knows about rtld(1) manpage.
* $Id$ -> $FreeBSD$peter1999-08-2813-13/+13
|
* Fix a bug in the handling of minor version numbers. Formerly, thejdp1998-11-071-13/+34
| | | | | | | | | | | | | | | | rtld would accept the first shared library it found with the right major version number, even if the minor version number was too low. If a different version of the shared library with an adequate minor version number appeared later in the search path, it would not be found. Now the rtld searches all locations first looking for a library with a minor version that is high enough. Only if such a library is not found will it fall back to accepting a minor version number that is too low. As before, a warning comes out in that case. This solves some problems encountered when building an older world on a -current system.
* Don't recognize a file as an a.out shared library unless it has atjdp1998-09-051-6/+4
| | | | | | | | | | | | least 2 version numbers. This fixes the bug where the dynamic linker would try to load an ELF shared library if it found one. Note, this change also fixes the same thing in "ld", because the code is shared. For "ld" there is still a problem with ".a" libraries, which cannot be distinguished by name. I haven't decided what, if anything, to do about that.
* Chaneg MACHINE to MACHINE_ARCH to support MACHINE=pc98.jb1998-09-051-3/+3
|
* Pass me the pointy hat with the extra sequins. Just a moment, while I getmckay1998-08-221-6/+20
| | | | | | | | | it to sit right... The __error() hack gave out the wrong address. It returned the address of errno in ld.so instead of the address of errno in the main program. Oops. The hack is now correct, just in time to be obsoleted by elf.
* Since I got no objections to this patch, and no one has offered anymckay1998-06-211-1/+70
| | | | | | | | | | | | alternative, I present .. ta! da! .. the __error() hack. This patch to the a.out dynamic loader provides old a.out binaries with __error() if they are linked with an older libc that lacks it, but are also linked against a library that needs it. There is a smaller, tricker hack that takes advantage of the fact that ld.so has __error() too, courtesy of the new libc, but this hack is the straightforward version.
* Search for libraries in dlopen() when the specified pathbrian1998-06-073-8/+13
| | | | | | contains no ``/''s. Elf already searches it seems. Mostly submitted by: Mike Smith <mike@smith.net.au>
* Seperate the Paul Kranenburg a.out rtld stuff into a stand-alone area awaypeter1998-06-011-5/+3
| | | | | from the gpl ld code. This is part 2 of something that I began in 1996. A repository copy has happened behind cvs's back.
* ELF preparation step 2:sos1998-05-262-4/+4
| | | | | | | | | | | | | | Move a.out libraries to /usr/lib/aout to make space for ELF libs. Make rtld usr /usr/lib/aout as default library path. Make ldconfig reject /usr/lib as an a.out library path. Fix various Makefiles for LIBDIR!=/usr/lib breakage. This will after a make world & reboot give a system that no longer uses /usr/lib/*, infact one could remove all the old libraries there, they are not used anymore. We are getting close to an ELF make world, but I'll let this all settle for a week or two...
* Implement dladdr.jdp1998-02-061-4/+94
|
* Make emacs work again. This is a workaround for the fact that thejdp1997-12-051-18/+33
| | | | | | | | | | | | | | | | | | | | emacs a.out file, self-generated by emacs's "unexec" function in "unexsunos4.c", is invalid. In particular, its "_end" symbol has the wrong value. The dynamic linker was using the value of that symbol to initialize its sbrk break level. The workaround is to peek at the executable's a.out header in memory, and calculate what "_end" should be based on the segment sizes. I will work out a fix for emacs and send it to the FSF. This dynamic linker workaround is still worthwhile, if only to avoid forcing all emacs users to build a new version. Note: xemacs gives a bogus warning at startup, for related reasons. The warning is harmless and can safely be ignored. I will send a patch to the xemacs maintainers to get rid of it, and meanwhile add a patch file to our port.
* Get rid of the dynamic linker's internal malloc package, and arrangejdp1997-11-292-267/+474
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Many places in the code NULL is used in integer context, wherephk1997-09-181-2/+2
| | | | | | | | | plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* spelling corrections.wosch1997-09-132-6/+6
| | | | | PR: docs/4450 Submitted by: josh@quick.net
* - In dlsym(), if the lookup fails using the original symbol, prepend annate1997-08-191-2/+30
| | | | | | | underscore and try looking it up again. This is a non-issue if we switch to ELF. Reviewed by: sef, jdp
* Implement dlsym(RTLD_NEXT, symbol).jdp1997-08-021-12/+64
|
* Typo fix.max1997-05-272-6/+6
| | | | | PR: 3693 Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
* Changes to support the kernel linker:dfr1997-05-131-1/+4
| | | | | | | | | | | | | | Add a -Bforcedynamic option which generates a dynamic object even if no shared libraries were given in the link. Make RRS in text section warnings conditional on "-assert pure-text" so that I can link non-PIC kernel modules without tons of link errors. Changes to bsd.lib.mk to follow. Fix a couple of bugs exposed by the fact that the kernel is not linked at zero. Reviewed by: jdp
* Fix a bug that caused the relocs for linker set members in sharedjdp1997-04-301-1/+3
| | | | | | | libraries to come out as 1-byte relocations instead of 4-byte relocations. Submitted by: Doug Rabson <dfr@nlsystems.com>
* Fixed `make depend' and related bogons. LDFLAGS was used forbde1997-04-161-10/+2
| | | | | | | | | | | ld-specific flags. LDFLAGS is really for ld-related flags for cc, not for ld, and some flags, e.g., -Bshareable, mean completely different things to cc and ld. Having the wrong things in LDFLAGS also broke the standard ${PROG} target. This was kludged around by using a special rule that depended on LDFLAGS being bogus. Fixing `make depend' broke the special rule but fixed the standard rule (except in the DESTDIR case, which was handled more strictly here than elsewhere).
* Revert $FreeBSD$ to $Id$peter1997-02-2213-13/+13
|
* Use xmalloc instead of malloc in two places, so that out-of-memoryjdp1997-01-241-1/+1
| | | | | | conditions will be detected. Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Pay attention to the environment variable "LD_IGNORE_MISSING_OBJECTS".jdp1997-01-173-2/+61
| | | | | | | | | If it is set to a nonempty string, then simply skip any missing shared libraries. This came up in a discussion long ago as a potentially useful feature at sysinstall time. For example, an X11 utility could be used without the X libraries being present, provided the utility had a mode in which no X functions were actually called.
* If a library is found in the hints file, but the library doesn't exist,jdp1997-01-141-0/+4
| | | | | | | | | ignore the hint. This is a straightforward fix, and it should go into 2.2 after a burn-in period of a few days. Noticed by: bde
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1413-13/+13
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Sort cross references.wosch1997-01-132-6/+6
|
* Use the RTLD_NOW symbol, now that it is defined in <dlfcn.h>.jdp1997-01-121-4/+3
|
* Correct typos and spelling errors.jdp1997-01-122-10/+10
|
OpenPOWER on IntegriCloud