summaryrefslogtreecommitdiff
path: root/lib/csu/powerpc
AgeCommit message (Collapse)Author
2004-01-08__init/__fini handling on ELF has not been correct. It is supposed toDale Rahn
be a section which code stubs (branches) can be added to initialize/destructor This adds MD stubs to allow this to operate as expected. should fix wine and behave according to ELF specs. ok miod@
2003-08-25Define both _start and __start in crt0, all of the other architectures do.Dale Rahn
2003-05-30Fix dependancy building for ELF startup code. Changed MakefilesDale Rahn
to build startup code the same on all (ELF) archs. hppa ok mickey@
2003-02-28copy basename of argv[0] to bss for __progname, so that large stack smashTheo de Raadt
does not make propolice reporting ineffective; millert miod ok
2003-02-26Switch to a C version of powerpc crt0 file. easier to read. movesDale Rahn
_progname storage into data instead of stack.
2001-05-28Commonize csu code for elf systems, powerpc now no longer has it's ownDale Rahn
versions of these files. Fixed a bug in ld.so in this, instead of scheduling the fini of each of the shared libraries with atexit. schedule a function of ld.so itself and it will walk all of the open libraries when the program exits. otherwise a shared library could be dl_open()ed and then dl_close()d and then it would not be mapped for the atexit processing. TODO: What if atexit is not found (process did not link against libc?) Do shared libraries that are dl_closed have their global destructors run?
2001-03-24Use "realinstall" to allow the framework to do other work if needed;Thorsten Lockert
path of least surprise. Ok millert@
2000-10-13Changes to the powerpc startup files to work in a more typical ELFDale Rahn
manner. the linker knows about the magic function _init and _fini and will create a .dynamic tag to point to those symbols in the executable/shared libraries. Take advantage of that fact to allow ld.so to easily find the appropriate ctors/dtors calls for shared libraries Since the crtbeginS.c now contains executable code, it must be compiled with -fPIC. Rename the __init and __fini functions to _init/_fini so the linker will locate them.
2000-06-28Powerpc was missing the scrt.o startup file. now used by the ramdisk instbin.Dale S. Rahn
also scrt does not support c++ ctors/dtors thus does not require crtbegin.o/crtend.o which it normally does.
2000-06-13Support files for shared library, expected by gcc, allows shared libraries toDale S. Rahn
have constructors and destructors.
1999-08-20Fix RCS IdsNiklas Hallqvist
1999-07-23Eliminate namespace pollution, the crt0 file should not conflictDale S. Rahn
with the "C" function start();
1999-03-13Fix loading of constant into upper portion off register, prevouslyDale S. Rahn
if the register being loaded into was not value zero would end up with wrong value. Only affected profiling executables.
1999-01-28update for binutils 2.9.1, whenever it might show up... The changesDale S. Rahn
are cleanup that would not work correctly with the newer version. works fine with the current (old) version of gas/ld. ALSO: Found a very long outstanding bug on the powerpc port. whenever nroff was run, say during a build, it would complain about memory being freed twice. Found the cause of this was that *roff which is written in C++ was using globals that had constructors/destructors and due to a bug in the crt code, the destructors were getting called when a program exited via falling out of the main loop. calling exit directly would not exersize the bug that ran the destructors twice. THIS BUG IS NOW FIXED.
1998-07-05Changes to support profiling on the powerpc port, startup code.Dale S. Rahn
1997-04-27COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIPTodd C. Miller
This fixes namespace problems where STRIP is sometimes used as the name of the strip(1) to use and other times used as the flag to send install(1) when stripping (or not). COPY doesn't have this problem (yet) but was poorly named.
1996-12-21Check-in of powerpc csu support.Dale S. Rahn
NOTE: This will not work until the other pieces are checked in. This is primarily the NetBSD powerpc port, with modifications to support ELF. A change needs to be made to one of the bsd.*.mk files to support DESTDIR compilation with the crtbegin and crtend files.