summaryrefslogtreecommitdiffstats
path: root/extra/gcc-uClibc/gcc-uClibc.c
Commit message (Collapse)AuthorAgeFilesLines
* Standardize LIBGCC_DIREric Andersen2002-11-051-4/+4
|
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-311-1/+1
| | | | | | | | | | | | | | | been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
* Make `-nostdlib' and `-nodefaultlibs' work correctly.Miles Bader2002-10-231-6/+7
|
* This commit contains a patch from Stefan Allius <allius@atecom.com> to changeEric Andersen2002-10-011-4/+3
| | | | | | | how uClibc handles _init and _fini, allowing shared lib constructors and destructors to initialize things in the correct sequence. Stefan ported the SH architecture. I then ported x86, arm, and mips. x86 and arm are working fine, but I don't think I quite got things correct for mips.
* Some minor C++ support updatesEric Andersen2002-09-121-1/+13
|
* Fix the gcc wrapper to include crtbeginS.o and crtendS.o when we are compilingEric Andersen2002-08-121-3/+20
| | | | | | PIC code, and use crtbegin.o and crtend.o when compiling non-pic code. As was caused problems, esp on powerpc... -Erik
* Patch from Alexander Pevzner <pzz@pzz.msk.ru> to fixup things when invoked asEric Andersen2002-07-311-1/+11
| | | | | | the C++ compiler to to automagically add include/g++ into the include search path, and automagically add -lstdc++ and -lm into the set of automatically linked libraries.
* Only enable elf2flt support when using elf toolchainsEric Andersen2002-07-051-1/+1
| | | | -Erik
* Add support for doing the mmu-less thingEric Andersen2002-06-201-0/+3
| | | | -Erik
* Fix a bug reported by Michael Weiser <michael@weiser.saale-net.de>Eric Andersen2002-06-201-13/+23
| | | | | | | which could cause incorrect invocations of g++. Cleanup a few things. Add a new --uclibc-ctors flag allowing one to apply ctor/dtor support to regular C code. -Erik
* It doesn't make sense to supress linking for -i or -r,Eric Andersen2002-03-221-2/+0
| | | | -Erik
* Fix incorrect ordering of -L and -l options, which prevented thingsEric Andersen2002-03-221-51/+36
| | | | | like iproute2 and XFree86 from linking. -Erik
* Add initial support for compiling cpp code.Eric Andersen2002-03-181-16/+38
| | | | -Erik
* Setup so ctors/dtors can run. Disabled for now, since they doEric Andersen2002-03-141-15/+18
| | | | | add a little bit to binary size... -Erik
* Lose the -nostdlib, which causes problems with older binutils, andEric Andersen2002-02-271-0/+1
| | | | | add some fflush calls, since it seems streams are not flushed before an exec
* Patch from Miles Bader: All the -M* options shouldEric Andersen2002-02-261-3/+3
| | | | suppress linking (right now, only `-M' does).
* Yet another iteration...Eric Andersen2002-02-251-51/+62
|
* Both Miles and Manuel complained about this one. I was silentlyEric Andersen2002-02-251-2/+2
| | | | losing all -Wl calls...
* Fix the compiler wrapper yet more...Eric Andersen2002-02-231-5/+3
|
* Fix a corner case which I had botched.Eric Andersen2002-02-231-7/+6
| | | | -Erik
* This should be a little better...Eric Andersen2002-02-231-7/+6
|
* Several needed cleanups to the gcc wrapper.Eric Andersen2002-02-201-17/+75
| | | | -Erik
* Patch from Michael E Brown <mebrown@michaels-house.net> toEric Andersen2002-01-091-25/+88
| | | | | support setting DEVEL_PREFIX and BUILD_DIR at runtime instead of having to recompile the wrapper. Minor changes by me.
* Oops. I accidentally commited some experimental test codeEric Andersen2001-12-201-21/+3
| | | | | (which was broken) yesterday. Revert that bit. -Erik
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-191-0/+22
|
* This commit merges David Schleef's updates to the build system, which aEric Andersen2001-07-121-6/+6
| | | | | | few tiny fixups here and there from me. Seems to work just fine and will hopefully be a bit better behaved. -Erik
* Don't change options on based on path -- use command line options orEric Andersen2001-07-051-2/+2
| | | | | | ENV variables only. The current behavior violates the principle of least surprise... -Erik
* Allow the shared lib loader to fallback on the builddir if everythingEric Andersen2001-07-031-1/+5
| | | | | | else fails. Let <arch>-uclibc-gcc --uclibc-use-build-dir set the shared lib loader to the one in the builddir's path. -Erik
* Added cmdline options --uclibc-use-build-dir and --uclibc-use-rpath so thatManuel Novoa III2001-05-311-3/+11
| | | | those behaviors can be invoked from the command line.
* Removed INSTALL_DIR and replaced it with DEVEL_PREFIX, ROOT_DIR, andManuel Novoa III2001-05-311-35/+47
| | | | | | | | TARGET_PREFIX to allow more flexibility. Also modified the gcc wrapper to do the right thing if -Wl,--dynamic-linker,xxx is passed on the command line. The gcc wrapper will also check the env variable UCLIBC_GCC_LDOPT for a dynamic linker option at runtime (although command line arg overrides the env variable).
* Look's like I need to disable the rpath stuff for now as well.Manuel Novoa III2001-05-301-0/+6
| | | | | To build with an uninstaled uClibc, set UCLIBC_GCC=build in your env, or rename it/symlink to it using a name containing the string "build".
* Revert behavior of wrapper to not use dynamic linker in the build dir, soManuel Novoa III2001-05-301-1/+1
| | | | | those who want to should now be able to compile against uClibc without installing it (using the "build" behavior).
* Revert behavior to either INSTALL_DIR or BUILD_DIR but not both. Also, ifManuel Novoa III2001-05-271-32/+28
| | | | | | | using BUILD_DIR and uClibc dynamic linker, use the one in the build dir. If people want the "both dir" behavior, I'll enable it similar to the "build" and "rpath" behaviors. See the comments in the file for how this works.
* One last structural change. Install header files to INSTALLDIR/usr/includeEric Andersen2001-05-251-1/+3
| | | | | | | so we now parallel the behavior of the standard tools. Also make sure we check INSTALLDIR/lib and INSTALLDIR/usr/lib for libraries. -Erik
* Patch from Andreas Neuhaus <andy@fasta.fh-dortmund.de>Eric Andersen2001-05-211-1/+1
| | | | gcc was looking for crt0 in the wrong dir. Oops!
* Ok, this should finish off my massive ro-organization. The sourceEric Andersen2001-05-121-3/+3
| | | | | | | | | tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik
* Avoid needing to distinguis between the install dir and the buildEric Andersen2001-05-031-11/+17
| | | | | dir. Use both automagically when compiling. -Erik
* Revert my ill-advised change to force the shared lib loader to alwaysEric Andersen2001-04-251-3/+0
| | | | | | | be linked. Just make libc.so link vs the shared lib loader and everything works fine. Duh. Thanks to Michael Shmulevich <michaels@jungo.com> for clueing me in. -Erik
* Make sure that we list the shared lib loader as a required libEric Andersen2001-04-231-0/+3
| | | | | | by explicitly linking against it. That way 'ldd' tells us what we need to know. -Erik
* Update the gcc wrapper. Changes described in the notes at the top of the file.Manuel Novoa III2001-04-201-57/+109
|
* Fix dynamic linking bug. If you need -ldl, you must explicitly add theManuel Novoa III2001-04-071-5/+1
| | | | | library (path and version!!!) to the args instead. For example, add /lib/libdl.so.1 if DYNAMIC_LINKER is /lib/ld-linux.so.1.
* Make a naming change to be consistent with other cross compiling tools.Eric Andersen2001-04-061-0/+8
| | | | | Set up a default lib dir off the root of the uClibc compile dir. This really needs more thought, but is good enough for now I think.
* This evening I've been investigating why linking with the shared uClibc libraryEric Andersen2001-02-281-0/+3
| | | | | | | | | | | | | | | | | was not working when booting busybox as init, even though it workes when run on my desktop system. I made boot floppy with just /dev, a few /etc entries, busybox dynamically linked vs uClibc, and /lib with shared uClibc in it. And just as several people have reported, it didn't work. So I ran 'ldd /bin/true' and it showed 'true' is linked with the shared library loader. But 'ldd ./busybox' showed it was only linked with uClibc. Doh! Of course it couldn't work! This patch fixes the gcc wrapper so when we link with the shared uClibc library, we also always link with the correct shared lib loader. With this patch in place, I have now sucessfully booted busybox linked vs the shared uClibc library. And it works great! -Erik
* Set dynamic linker used to /lib/ld-linux.so.1. Changeable in Makefile.Manuel Novoa III2001-01-171-1/+5
|
* Adapted to handle shared libraries as well as static. Fixed Makefile for m68k.Manuel Novoa III2001-01-171-10/+38
|
* Oops. Forgot to check these in...Eric Andersen2001-01-161-1/+1
|
* First pass at making this work with the new libcrt0.o location.Eric Andersen2001-01-151-1/+1
|
* A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.Eric Andersen2001-01-111-0/+129