summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/sh
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a syscall() implementation using a hacked version of the syscall6 macro.Manuel Novoa III2003-12-022-1/+26
| | | | Untested, but syscall() is needed by busybox for pivot_root at least.
* Remove SAFECFLAGS. It was a workaround for failures in old awk scriptEric Andersen2003-11-221-11/+3
| | | | | | | | | | used to generate the crti.S and crtn.S files. Since we don't use that anymore, keeping the workaround makes no sense. Furthermore, in most cases, SAFECFLAGS was not picking up all the needed flags, causing crti.o and crtn.o to not be built PIC. Which is very bad. Removing SAFECFLAGS and using CFLAGS fixes that as well.
* Stefan Allius writes:Eric Andersen2003-11-112-4/+2
| | | | | | | | | | Hello Erik, to compile the new uClibc release for a SH3 we need some little modifications: First I fix the crt[in].S files, so we can use them for big endian and little endian targets.
* Darn. Fix compilation for soft-float, which I inadvertantlyEric Andersen2003-11-081-4/+7
| | | | broke a couple of days ago. :-(
* Continue the conversion to using per-arch crti.S and crtn.SEric Andersen2003-11-053-1/+113
|
* properly deal with soft-float when profiling as wellEric Andersen2003-10-251-0/+3
|
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-2/+1
| | | | | | | | | | ln.patch: * Define $(LN) as ln in Rules.mak. * Change all occurrences of ln into $(LN). * Change all constructs like (cd path && ln -sf foo/file file) into $(LN) -sf foo/file path/file. The latter construct is already used in a number of places so it should not be an additional compatibility problem.
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-2/+2
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Patch from Atsushi Nemoto (with some additions):Eric Andersen2003-10-082-0/+57
| | | | | | | Current uClibc contains only one fpu_control.h and it is i386 version. This is a patch to use platform specific fpu_control.h. All new files come from glibc 2.3.2. This patch is against 0.9.21 but also can be applied to CVS as is.
* Fix "subst -g,," problem for SAFECFLAGS.Manuel Novoa III2003-09-211-1/+1
|
* Some updates from glibc. mjn3 reports this fixes profilingEric Andersen2003-09-071-6/+6
| | | | on i386, at least, so seems like a good thing.
* setjmp was trashing r12 which is bad and can cause apps to crash if they areDavid McCullough2003-05-011-3/+3
| | | | | using r12. r12 is supposed to be preserved across C function calls. r0-r7 are trashable :-)
* Patch from Stefan Allius:Eric Andersen2003-03-071-0/+5
| | | | fix a couple of gcc 3.3 compiler warnings in gmon.c
* Patch from Stefan Allius to finish off the last required bitsEric Andersen2003-03-063-29/+90
| | | | for gmon profiling support for the SuperH target.
* Initial effort at adding profiling support.Eric Andersen2003-03-034-0/+115
|
* If floating point was enabled, setjmp would write to memory well past theDavid McCullough2003-02-171-2/+3
| | | | end of the buffer.
* Ok, people are probably going to hate me for this... This commit changes theEric Andersen2003-01-241-60/+3
| | | | | | | | | | | | | | | type of 'struct stat' and 'struct stat64' so they use consistant types. This change is the result of a bug I found while trying to use GNU tar. The problem was caused by our using kernel types within struct stat and trying to directly compare these values with standard types. Trying an 'if (a < b)' when 'a' is an 'unsigned long' and 'b' is an 'int' leads to very different results then when comparing entities of the same type (i.e. time_t values).... Grumble. Nasty stuff, but I'm glad I got this out of the way now. As a result of this fix, uClibc 0.9.17 will not be binary compatible with earlier releases. I have always warned people this can and will happen. -Erik
* Update architecture specific support to consistantlyEric Andersen2003-01-232-11/+2
| | | | | | generate a crt0 and crt1 file. Most arches still need to be updated to call __uClibc_start_main() rather than __uClibc_main().
* Based on discussions with Stefan Allius, change it so that we alwaysEric Andersen2002-12-122-12/+9
| | | | | | | build a crt0.o and a crt1.o. crt1.o will support ctors and dtors if such support is enabled. One more gratuitous toolchain support issue is thereby removed... -Erik
* Silly me, I forgot to include features.hEric Andersen2002-11-291-4/+5
|
* Make support for global constructors and global destructors beEric Andersen2002-11-271-4/+34
| | | | | | configurable, so people who do not need or want ctor/dtor support can disable it and make their binaries a little bit smaller. -Erik
* Stefan Allius writes:Eric Andersen2002-11-153-115/+116
| | | | | | | | | | | I attached a patch, which revise the clone.S and vfork.S: - Use PIC code. - include new file syscall.S, so we can simply make a branch to __syscall_error instead of a PLT/GOT call - call errno_location to store the syscall error (for pthreads) - avoid to use the 'shad' statement on SH2 targets - call fork if vfork isn't available - some cleanups and optimization
* Remove obsolete filesEric Andersen2002-11-152-74/+0
|
* Stefan Allius writes:Eric Andersen2002-11-153-11/+78
| | | | | | | | | | | | | Hi Erik, I added the FPU support for the setjmp/longjmp stuff. This patch also moves the code from the bsd*.S files to the setjmp.S file, so we can use simple branch instructions instead of referencing over the .GOT/.PLT section. This makes the PIC code much easier, smaller and faster. (The idea comes from the SPARC target) Bye Stefan
* I dunno why there were align 5, but align 4 is much more sensible.Eric Andersen2002-11-046-6/+6
|
* Kill sysdep.h and fixup the SH asm to not use it.Eric Andersen2002-11-047-114/+48
| | | | -Erik
* Don't use ENTRY(), make the asm explicitEric Andersen2002-11-041-1/+5
| | | | -Erik
* Properly prefix some symbolsEric Andersen2002-11-031-22/+2
|
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-311-3/+3
| | | | | | | | | | | | | | | 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
* Support O_STREAMINGEric Andersen2002-10-091-0/+1
|
* Patch from Stefan Allius <allius@atecom.com>:Eric Andersen2002-10-013-6/+6
| | | | | | | | | | | | | | | | | | | ----------------------------------- In extra/Configs/Config.sh I added the INCLUDE_PTHREADS statement and change the default values for BUILD_UCLIBC_LDSO and HAVE_SHARED. ----------------------------------- In extra/scripts/initfini.pl My last patch removes two labels, which migth be used by the .size statements. (Sorry, but I'm a perl beginner) I fixed it. ----------------------------------- In libc/sysdeps/linux/common/initfini.c I fixed two warnings "nested extern declaration of `i_am_not_a_leaf.. ----------------------------------- In libc/sysdeps/linux/sh/__init_brl.c brk.c sbrk.c I fixed some compiler warnings which comes from a wrong inclusion order. -----------------------------------
* This commit contains a patch from Stefan Allius <allius@atecom.com> to changeEric Andersen2002-10-011-19/+30
| | | | | | | 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.
* Change <bits/syscall.h> to <bits/sysnum.h>.Miles Bader2002-09-053-4/+4
|
* Somehow the bit of code that add the offset of envp to argv got lostDavid McCullough2002-08-271-0/+1
| | | | | and envp was a very small number and not an address. I think this fixes most of the SH platform.
* Fix a delay slot problem, this gets some apps working on SH, a good numberDavid McCullough2002-08-271-1/+3
| | | | are still seg-faulting.
* Added __kernel_fsid_t to satisfy some apps that need it.David McCullough2002-08-271-0/+8
| | | | Definitions taken from 2.4 kernel sources for each of the platforms.
* Make bits/kernel_types.h include guard names match the includeEric Andersen2002-08-261-3/+9
| | | | | | | guard names used by the kernel's asm/posix_types.h to eliminate gratuitous conflicts and let our file win over the very-likely- to-be-broken kernel header file. -Erik
* Finish off the bits/kernel_stat.h cleanup for properEric Andersen2002-08-251-0/+55
| | | | | __USE_FILE_OFFSET64 handling. -Erik
* Break dependancy of bits/types.h on the asm/posix_types.h kernelEric Andersen2002-08-241-0/+29
| | | | | header, which is not directly usable for many architectures. -Erik
* Split out the definition of struct stat into the new archEric Andersen2002-08-231-0/+87
| | | | | specific bits/kernel_stat.h file. -Erik
* Work from Stefan Allius which allows superH to use the commonEric Andersen2002-08-193-54/+1
| | | | method for building crti.o and crtn.o
* Fix a number of compile time warnings so that uClibc will build with -Werror ↵David McCullough2002-08-091-1/+3
| | | | | | using a 3.0.4 version of the sh-linux-gcc compiler.
* Doh! I broke it. oops. Patch from Stefan Allius to fix it.Eric Andersen2002-08-091-1/+1
|
* I reworked syscalls.h to match how I'm doing other arches. Stefan Allius andEric Andersen2002-08-085-31/+197
| | | | | | Edie C. Dost has some concerns about the perl script used to general crti.o and crtn.o and added their own versions. These versions will win since they are built last,
* Rework syscall handling. Rewrite syscall handlers for x86 and ARM.Eric Andersen2002-07-221-101/+10
| | | | | | Prepare to kill the UNIFIED_SYSCALL option and instead have it be a per arch thing that is either enabled or not for that arch. -Erik
* Manuel and I were looking into a problem with applications failing to linkEric Andersen2002-04-141-0/+7
| | | | | | | | | | (undefined reference to `main') when the .o file containing main was contained in an static library(a '.a' ar archive). It turns out that due to its single pass nature, GNU ld was failing to pull it into the build. This sticks a dummy reference to main() into crt0.o, so that when an application is linked with the main() function in a static library, we can be sure that main() actually gets linked in. -Erik
* Run dos2unix on these filesEric Andersen2002-04-034-11/+11
|
* Build our own crti.o and crtn.o with a cross arch method that IEric Andersen2002-03-131-1/+1
| | | | | can live with much better the what glibc does. -Erik
* Remove generated stuff, restore sh/sys/procfs.h from M. R. BrownEric Andersen2002-03-021-0/+117
|
* Move syscall.h generation to the top level MakefileEric Andersen2002-03-011-1/+0
| | | | -Erik