summaryrefslogtreecommitdiffstats
path: root/lib/csu/i386
Commit message (Collapse)AuthorAgeFilesLines
* Remnant code (broken, unhooked) from a.out which I missed.trhodes2005-01-113-527/+0
| | | | Noticed by: ru
* Drop support for COPY, -c has been the default mode of install(1)ru2002-07-291-1/+1
| | | | | | for a long time now. Approved by: bde
* Do not use __progname directly (except in [gs]etprogname(3)).markm2002-03-292-6/+9
| | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Fixed type mismatches in args to __syscall(). One for mmap() broke onbde1998-12-271-5/+5
| | | | | i386's with 64-bit longs -- the padding between mmap()'s 5th and 6th is an int, not a long. The other mismatches were benign.
* Avoid using ld -O (as in bsd.lib.mk).bde1998-12-271-7/+16
| | | | Fixed `make cleandepend'. The default is null because SRCS is null.
* Fixed double slashes in pathnames.bde1998-05-311-2/+2
|
* ELF preparation step 2:sos1998-05-261-2/+2
| | | | | | | | | | | | | | 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...
* Remove the include of <dlfcn.h> from crt0.c; it is not needed nowjdp1998-02-113-79/+3
| | | | | | | that the dl* trampolines have been moved into libc. Move dlfcn.h from src/lib/csu/i386 into src/include. Nothing in src/lib/csu/i386 uses it any more.
* Move the trampolines for dlopen and related functions from crt0.ojdp1998-02-094-481/+18
| | | | | | | | | | | | | | | into libc. This reduces the size of every dynamically linked executable by 248 bytes, and it reduces the size of static executables by a lesser amount. It also eliminates some global namespace pollution. With this change in place, the source for dlfcn.h should probably be moved to "/usr/src/include". I'll save that for another day. Compatibility note: Programs which use dlopen, if compiled on systems with this change, will not run on systems with a libc from prior to this change. Very few programs use dlopen, so I think that is OK.
* Implement dladdr.jdp1998-02-064-13/+169
|
* ${TARGET} -> ${.TARGET}eivind1998-01-121-2/+2
| | | | Tiny pointed hat goes to: Our Makefile-meister.
* const correctness for dl*()brian1997-11-223-15/+15
|
* Make this file p-make clean. (Use "ld -O foo" instead of "ld; mvasami1997-10-111-11/+6
| | | | | | a.out foo".) Reviewed by: bde (actually more like "Suggested by")
* Sort cross refereces in section SEE ALSO.wosch1997-09-291-2/+3
|
* Implement dlsym(RTLD_NEXT, symbol).jdp1997-08-023-8/+42
|
* Use our copy of dlfcn.h, not the version in /usr/include, which may notmsmith1997-04-301-2/+2
| | | | | be up-to-date when we are building. Submitted by: Terry Lambert <terry@lambert.org>
* Declare the constructor/destructor linker sets as extern rather thanjdp1997-04-091-3/+24
| | | | | | | | | | | | | | | | | common. Add one do-nothing element to each set. This ensures that the linker realizes that they are linker sets rather than simple commons, and makes it possible to link c++rt0.o into every shared library regardless of whether it is a C++ library or not. Without this change, the constructors and destructors in the main program could be executed multiple times. This change is going to make it possible to get rid of the CPLUSPLUSLIB makefile variable once and for all. It is a piece of the solution to PR gnu/3505 (gcc -shared). Finally, it fixes a heretofore unreported bug: If CPLUSPLUSLIB was set in a makefile for a C++ shared library that had no static constructors or destructors in it, then the main program's constructors and destructors would be executed multiple times.
* Fix an error in the previous revision that caused make world breakage.jdp1997-04-021-1/+3
|
* Simplified install rule.bde1997-04-011-6/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | 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.
* Convert to mdoc format.jdp1997-01-121-136/+152
| | | | | | | Add descriptions of RTLD_LAZY and RTLD_NOW. Correct the synopsis to agree with the actual function prototypes. Add clarifications of a few things. Clean up the wording in a few places.
* Add definitions of RTLD_LAZY and RTLD_NOW.jdp1997-01-121-0/+6
|
* Set the "crt_ldso" member of the crt-to-ld.so interface structure. Thisjdp1997-01-111-1/+2
| | | | | | | | | | was apparently overlooked at the time the member was added. Its absence causes some error messages from the dynamic linker to begin with "(null):" instead of with the pathname of the dynamic linker as they should. I am also adding a work-around to the dynamic linker, to cope with legacy binaries that were built with older versions of crt0.
* Use ${COPY} instead of -C for installing non-source files. crt*.obde1997-01-011-2/+2
| | | | | should be installed using the same flag as libraries, but ${COPY} is currently used for libraries.
* When linking with no rtld support, provide stub dl*() functions thatpeter1996-12-281-1/+43
| | | | | | | | | | | | | just return errors. This removes the need for awful hacks like that in our build of libtcl which would get link errors when linked static. John Polstra once mentioned that this was on his "todo" list. Note that one can use: cc -Wl,-Bstatic -o foo foo.o and get an executable that has it's libraries statically linked, but has a fully functional runtime linker so the executable can call dlopen() and have it work. (I've tested this)
* Fixed prototyping of dlopen/dlsym in dlfcn.h, to match how crt0.c definesscrappy1996-10-081-2/+2
| | | | | | it and link.h prototypes it Error of my ways pointed out by Peter
* Remove garbage initcode reference so that 'gcc -Dlint ...'steve1996-10-061-2/+1
| | | | will compile without error.
* Support crt0 <-> ld.so interface version 4. This should be both backwardspeter1996-10-011-5/+11
| | | | | | | | | | and forwards compatable with version 3. This is needed to enable storing a run-time library path in the dynamic linking headers. The crt startup tries version 4 first, and falls back to version 3, so an executable that is linked on -current will work with the ld.so on 2.1.x and less. Reviewed by: nate, jdp Obtained from: NetBSD
* cmp -s || install -c --> install -Cpeter1996-08-301-7/+5
|
* ``mv'' -> ``mv -f''wosch1996-05-071-6/+6
| | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root
* Changed the dimensions of __CTOR_LIST__ and __DTOR_LIST__ from 0jdp1996-02-201-14/+6
| | | | | | | | | | | | | | to 2. This makes them agree with the declarations in libgcc, and clears the way once again for linking c++rt0.o into all libraries, and eliminating CPLUSPLUSLIB from <bsd.lib.mk>. (I have not made that change yet, because there is still a bootstrapping problem for "make world".) Also, removed a check which ensured that the constructor count in the first word of __CTOR_LIST__ was greater than zero before traversing the list. I had added that check earlier, but it is no longer necessary, now that there is guaranteed to be at least 2 words in __CTOR_LIST__.
* Back out the thread_init code in order to allow -current to bootstrapnate1996-01-301-8/+0
| | | | | | from -stable, until a better solution is found. Submitted by: Consensus of mailing list and the almighty Jordan :)
* Reviewed by: julian and (hsu?)julian1996-01-221-1/+9
| | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* Check the count in the first word of __CTOR_LIST__ before executingjdp1996-01-151-4/+12
| | | | | | | | | | | | | | | | | the loop that invokes the static constructors. That makes it safe to link c++rt0.o into any shared library, even one that does not have any static constructors. Formerly, doing that would cause a bus error. If the library has no static constructors, __CTOR_LIST__ comes out as a simple 4-byte COMMON region, and it does not have the usual NULL word that terminates the list of constructors. This caused the old code to "call" a garbage address via the non-existent entry __CTOR_LIST__[1]. The analogous code that invokes the static destructors was already safe. This change is fully backward-compatible. Reviewed by: dfr@render.com (Doug Rabson)
* This commit was generated by cvs2svn to compensate for changes in r13122,peter1995-12-301-3/+0
| | | | which included commits to RCS files with non-trunk default branches.
* recording cvs-1.6 file deathpeter1995-12-302-436/+0
|
* Remove my locale hack. Sigh.ache1995-11-022-14/+3
|
* Clean up and make code (more) readable.phk1995-10-292-111/+96
|
* Fixed dependencies for scrt0.o.bde1995-10-221-7/+14
| | | | | | Build a static gcrt0.o (sgcrt0.o) too. Currently only the dynamic gcrt0.o is used, although -pg forces -static. Sorted the .o targets.
* -fomit-frame-pointer is becomming an increasingly popular optimization,phk1995-10-201-2/+2
| | | | | so before somebody screws up royally, make sure this always works by adding a -fno-omit-frame-pointer here.
* put the _getenv and _strncmp under #ifdef DEBUG, which is the only timephk1995-10-181-1/+6
| | | | they are used. Saves a few bytes here and there, nothing major.
* Create a scrt0.o file that specifically excludes the shared-lib support.dg1995-10-181-6/+11
| | | | This will be used for -static programs.
* Fixup the "ld.so failed" message for the case when ld.so finds undefinednate1995-09-271-5/+16
| | | | | | | | | | | symbols. An easy example to see this is to develop an X program which links against Xt, but doesn't add -lX11 to the link line. It will link fine, but cause run-time errors by ld.so because of missing symbols used by Xt defined in X11. This patch makes the errors more readable. Submitted by: jdp@polstra.com (John Polstra)
* Install source files with the -c flag, not with the optional flag ${COPY}.bde1995-08-061-2/+2
|
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-08-061-3/+4
| | | | | | | specified in the top level Makefiles. Previously I missed dozens of Makefiles that skip the install after using `cmp -s' to decide that the install isn't necessary.
* Numerous Makefile fixes:wollman1995-06-301-11/+30
| | | | | | | | 1) Do dependencies. 2) Install all appropriate links to manual pages. 3) Install header file in `beforeinstall' like all the rest. 4) Install header file only if changed. 5) Install object files only if changed.
* Change ld.so to correctly load dependant libraries for dlopen and unload themdfr1995-06-272-4/+16
| | | | | | | | | | | | | | | | | on dlclose. Also correctly call constructors and destructors for libraries linked with /usr/lib/c++rt0.o. Change interpretation of dlopen manpage to call _init() rather than init() for dlopened objects. Change c++rt0.o to avoid using atexit to call destructors, allowing dlclose to call destructors when an object is unloaded. Change interface between crt0 and ld.so to allow crt0 to call a function on exit to call destructors for shared libraries explicitly. These changes are backwards compatible. Old binaries will work with the new ld.so and new binaries will work with the old ld.so. A version number has been introduced in the crt0-ld.so interface to allow for future changes. Reviewed by: GAWollman, Craig Struble <cstruble@singularity.bevc.blacksburg.va.us>
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
OpenPOWER on IntegriCloud