summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
...
* Atsushi Nemoto writes:Eric Andersen2004-10-261-15/+25
| | | | | | | | | | | | | | | | | | | | | >>>>> On Tue, 19 Oct 2004 13:28:34 -0600, Erik Andersen <andersen@codepoet.org> said: >> BTW, top of uClibc TODO list is "Fix syscall() on mips". What is a >> problem? andersen> It appears that uClibc's syscall() for mips works ok for andersen> syscalls with a few arguments. But as I recall, it does not andersen> work properly with _syscall5, _syscall6, _syscall7, etc. andersen> Perhaps there is some mistake in its assumptions about the andersen> mips/linux ABI regarding which syscall arguments are passed andersen> via register vs which syscall arguments are passed on the andersen> stack. Hmm... I found a old fix in uClibc ML archive. http://www.uclibc.org/lists/uclibc/2002-September/004459.html But it seems somewhat broken. How about this fix instead? I tested mmap with syscall() in mips. mips64 is not tested.
* Peter S. Mazinger writes:Eric Andersen2004-10-193-3/+8
| | | | | | | | | | | Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
* Atsushi Nemoto writes:Eric Andersen2004-10-191-8/+8
| | | | | | | | | In a recent post to linux-mips ML (and libc-alpha ML), a problem with inline syscalls was reported. http://www.linux-mips.org/archives/linux-mips/2004-10/msg00142.html It seems uClibc should be fixed also for newer gcc. Here is a patch.
* Peter Mazinger writes:Joakim Tjernlund2004-10-143-8/+18
| | | | | | | | | | | | | | | The attached patch generalizes the use of PIE (all archs are brought in sync that use/mention it: x86/ppc/frv) and makes use of it building the target utils. Tested on x86, ppc should be tested, frv uses -fPIE at one location, but at another place -fpie, I don't know which is correct (could be both) and misses the target addition in Config.in. The test for ppc (requires the earlier sent crt-correction patch to work correctly): enable UCLIBC_PIE_SUPPORT, build uClibc and utils, check: file ./utils/ldd, it should show shared object (instead of executable)
* Add bswap_64 macro and uClibc_page.h. From Peter Kjellerstedt.Joakim Tjernlund2004-09-232-0/+55
|
* Typo fix from Peter Mazinger.Joakim Tjernlund2004-08-301-1/+1
|
* Preliminary PIE support for powerpc, i386 was used as template.Joakim Tjernlund2004-08-272-3/+26
| | | | Requested by Peter Mazinger. Testing wanted.
* Partial patch from Alexandre Oliva:Eric Andersen2004-08-2617-57/+597
| | | | | | | | | | - adjust licensing terms of sources for crt*.o - change the stat ABI to speed it up, matching changes in the kernel - assorted bug-fixes, improvements and updates in the FR-V port etc.
* Mike Frysinger writes:Eric Andersen2004-08-251-0/+1
| | | | | | | | | | | | i sent this earlier but perhaps people missed it the first time around :) http://www.uclibc.org/lists/uclibc/2004-August/009544.html basically if you try to #include <sys/ucontext.h> on arm it'll fail because ucontext.h utilizes typedefs found in bits/sigcontext.h ... i386 already has this fix in uClibc find attached a trivial patch to fix this -mike
* Patch by Carl SHAW <carl.shaw@st.com>...Manuel Novoa III2004-08-252-1/+107
| | | | | | | | | | | | Below is a patch to make the pread and pwrite calls work on the SH architecture. I've only tested this on the SH4 with a 2.4.24 kernel - a fairly recent kernel is required as the problem is partially fixed in the kernel itself. For more information (in relation to glibc, but the problem is the same) see the thread at http://sourceforge.net/mailarchive/message.php?msg_id=2375908 Someone should really test this on the SH2/3...
* Make the stub profiling stuff workEric Andersen2004-08-222-98/+4
|
* Attempt to support 'gcc -finstrument-functions', which seems muchEric Andersen2004-08-213-0/+120
| | | | | more sane than 'gcc -pg' and seems much easier to support. -Erik
* Kill off all support for 'gcc -pg' / 'gprof' style profiling. There is both aEric Andersen2004-08-2133-1476/+11
| | | | | | | | size and performance penalty to profiling applications this way, as well as Heisenberg effects, where the act of measuring changes what is measured. There are better tools for doing profiling, such as OProfile, that do not require gcc to instrument the application code. -Erik
* Enable only for architectures where __NR_madvise is definedEric Andersen2004-08-201-0/+2
| | | | -Erik
* The variable used to store pagesize is not the same as theEric Andersen2004-08-161-3/+3
| | | | | _dl_pagesize variable in ldso, so avoid aliasing. -Erik
* Logic was reversed.Manuel Novoa III2004-08-151-2/+2
|
* Fixup PAGE_SIZE problemsEric Andersen2004-08-136-7/+94
| | | | -Erik
* Fix mips bug related to 2.6 headers by following glibc's lead. Based onManuel Novoa III2004-08-101-0/+15
| | | | the comment, newer kernels appended "64" to __NR_pread and __NR_pwrite.
* Apparently the sigaction code added was broken, as it generated illegalManuel Novoa III2004-08-101-1/+1
| | | | instruction errors. Disable it for now.
* Cleanup some dead wood in the header filesEric Andersen2004-07-305-2238/+0
|
* s/___brk_addr/__curbrk/gEric Andersen2004-07-3023-83/+82
| | | | | | | | Some utilities, such as valgrind, have a legitimate reason to know the address of the current brk. Since we know such utils will peek under our skirt, we might as well give them what they expect and not use a gratuitously different symbol name. -Erik
* Some mips updates. Add a couple of missing sys/*.h files and update a few ↵Manuel Novoa III2004-07-305-51/+684
| | | | others.
* Be certain to include sys/sysmacros.h when major() and minor()Eric Andersen2004-07-272-0/+2
| | | | are being used
* Fix ftruncate64 and truncate64 for powerpc and mipsEric Andersen2004-07-212-10/+52
| | | | -Erik
* Update sigaction for armEric Andersen2004-07-171-22/+42
|
* Add sigaction for mipsEric Andersen2004-07-172-1/+124
|
* Follow glibc's lead and add a gcc-3.4.1 required symbol to crt0.S.Manuel Novoa III2004-07-161-0/+6
|
* Pete Popov writes:Eric Andersen2004-07-1660-1/+4349
| | | | | | | | | | | | | Hi Erik, I'm not sure why the NIOS support is not in uClibc -- perhaps the patch was rejected or never submitted? In any case, I'm playing with some NIOS stuff and created this patch against 0.9.26. The work was done by Microtronix. I'm not sure who else contributed to it. It would be great to have the NIOS support available in uClibc so developers don't have to go searching for these bits. Pete
* Atsushi Nemoto writes:Eric Andersen2004-07-151-18/+13
| | | | | | | | | | | | This is a patch for uClibc/libc/sysdeps/linux/mips/sys/procfs.h pulled from glibc CVS. This fixes gdb with threaded application (with glibc environment). Although debugging threaded programs seems not working on uClibc/mips yet, this patch will be required when it becomes working. This patch can be applied to any version of uClibc (including current CVS).
* h8300 updates from Yoshinori SatoEric Andersen2004-07-1525-421/+788
|
* Per comments from Bernhard Rosenkraenzer, adjust gcc 3.3.x generated asmEric Andersen2004-06-122-38/+24
| | | | with s/i686.get_pc_thunk.bx/get_pc_thunk_bx/g to make gcc 3.4 happy.
* Removed unused file.Tobias Anderberg2004-05-241-72/+0
|
* Cope when the __NR_get_kernel_syms is undefined (i.e. 2.6.x arm-linux)Eric Andersen2004-05-151-0/+9
|
* Alexandre Oliva writes:Eric Andersen2004-05-146-336/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are a number of minor changes to FR-V-specific bits of the uClibc port: - I've adjusted the definition of _dl_mmap to cope with the fact that there will be a definition for an mmap2-only system. - We don't have COPY relocs, so optimize the copy reloc-related code away. - Change the page size to 16KiB, to match the ABI spec, and not a stale value I'd copied from a linker config file. Oops. - Fix error handling in clone and vfork; parts of the changes by David Howells <dhowells@redhat.com> - Rearrange includes in crtreloc.c. - Change the API of __syscall_error, to reduce code size. - Improve __syscall_return in terms of code size, so as to enable tail-calling of __syscall_error, at least within libc. Ideally, __syscall_error should be hidden within libc.so, but this didn't work because of libdl. I haven't looked into why, and figured I'd leave it visible for now. - Rename enumerators and macros in sys/ucontext.h to reduce namespace pollution.
* __data_start needs to be added to all crt0.S files that don't currentlyEric Andersen2004-05-1414-44/+145
| | | | have it. It is used by the boehm gc, amoung other things.
* Kill off the now obsolete __libc_vfork symbolEric Andersen2004-05-144-11/+4
|
* Patch from Alexandre Oliva:Eric Andersen2004-05-142-2/+130
| | | | | | | | | | | On Mar 20, 2004, Erik Andersen <andersen@codepoet.org> wrote: > If you supply a FR-V specific link.h header into > libc/sysdeps/linux/frv/ then you can do the same sortof > thing that mips does i.e. with sgidefs.h in the headers > target in libc/sysdeps/linux/mips/Makefile Thanks, this patch implements your suggestion.
* Add define for SHM_HUGETLBEric Andersen2004-05-131-0/+1
|
* make certain that getpagesize() returns correct the value for mipsEric Andersen2004-05-111-10/+14
| | | | by extracting the value from the ELF header.
* Patch from Yoshinori Sato <ysato@users.sourceforge.jp>.Manuel Novoa III2004-05-071-0/+4
|
* Fix a couple of issues in configurations I hadn't tested.Manuel Novoa III2004-05-071-23/+7
|
* Fix screwed up formattingEric Andersen2004-05-051-20/+20
|
* Jeroen Dobbelaere writes:Eric Andersen2004-05-051-1/+2
| | | | | | | | | | Because variables are linked to fixed registers, there is a problem in : (*__errno_location())=(-_r0); As __errno_location() uses r0 to return the address of the errno location, the negated address will be assigned instead of the error code. Attached patch will resolve this.
* It turns out that asm/reg.h is missing from the 2.6.x kernel headers,Eric Andersen2004-04-231-2/+167
| | | | | which prevents libthread_db (used by gdb) from compiling. Include a copy within include/sys/user.h for mips, per what was done in glibc.
* Cope with gcc 3.4's more aggressive persuit of attribute unusedEric Andersen2004-04-2010-28/+28
|
* Fix typo.Manuel Novoa III2004-04-141-1/+1
|
* Per patch from Stefan Holst, do not try to compile theseEric Andersen2004-03-194-0/+8
| | | | syscalls if they are not supported.
* Patch from Stefan Holst to fix argv[0]Eric Andersen2004-03-191-5/+5
|
* Based on a patch from Alexandre Oliva, allow uClibc to compileEric Andersen2004-03-191-0/+2
| | | | with __NR_mmap is not available (i.e. only __NR_mmap2)
* Alexandre Oliva writes:Eric Andersen2004-03-182-1/+42
| | | | | I added this function after I posted the last version of the FR-V patch. Add syscall.c.