summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* sh_nptl: Enable CFI directives for shCarmelo Amoroso2008-09-182-0/+9
| | | | | | | | | Enable CFI directives for sh to add proper CFI information into assembly functions. This provides stack frame information used during stack unwinding as well by debugger for backtracing. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fixes posix_fadvise[64] functions to return the Carmelo Amoroso2008-09-185-155/+189
| | | | | | | | | | error number in case of failure instead of -1 and setting errno, according to SuSv3 (IEEE Std 1003.1 2004 edition) specification. Also refactor sysdep.h and syscalls.h moving INTERNAL_SYSCALL macro to the latter (as other archs do in uclibc). Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Kill off the GOT lookup for init/fini in the sh crti.S. This wasCarmelo Amoroso2008-09-181-25/+2
| | | | | | | | | inversely conditional on __HAVE_SHARED__, which has been broken since the time it was copied in originally. The compiler properly generates the GOT references on its own, negating the entire purpose for the init/fini reference. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Remove trailing whitespacesCarmelo Amoroso2008-09-181-2/+2
|
* Try not to use ">&" dash shell does not like it.Khem Raj2008-09-181-1/+1
|
* Make sure that multi-threaded statically linked applications use the realCarmelo Amoroso2008-09-032-2/+6
| | | | | | | | | | locking implementations instead of the empty stubs from libc.a. Removed also old work-around added to opendir, due to wrong pthread_mutex_init (from libc.a) used in static binaries. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Remove pointless extern declaration for __pthread_onceCarmelo Amoroso2008-08-201-2/+0
|
* Use pthread_once now __pthread_once is not defined in tests.Khem Raj2008-08-151-1/+1
|
* include signal.h for missing SIG_BLOCK definition.Khem Raj2008-08-151-0/+1
|
* __asm__ and __volatile__ conversion for arm.Khem Raj2008-08-152-3/+3
|
* &> seems like tcsh like. busybox/ash does not seem to like it I am getting ↵Khem Raj2008-08-151-1/+1
| | | | wrong fd number error. So I replaced it with something that makes ash happy.
* Fix SH ldso sequence startup.Carmelo Amoroso2008-08-082-4/+20
| | | | | | | | | | | | | | | | | | Pass via r4 the rtld finalizer _dl_fini to the user application. This will be the 6^ arg of __uClibc_main and will be registered with 'atexit'. In this way the dynamic linker will be able to call destructors defined within the loaded DSOs. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Acked-by: Paul Mundt <lethal@linux-sh.org> Add missing 7th arg "stack_end". add comment of undocumented usage of r4. fix comment of expected __uClibc_main() prototype. Signed-off-by: Yoshii Takashi <yoshii.takashi@renesas.com> Acked-by: Paul Mundt <lethal@linux-sh.org>
* some more asm keyword fixes (Yann E. MORIN)Carmelo Amoroso2008-08-064-21/+19
|
* Revert recent changes to previous version at rev 20454.Carmelo Amoroso2008-08-041-8/+7
| | | | | | Functionally the code is the same, just a matter of coding style. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Remove trailing whitespaces: two missing filesCarmelo Amoroso2008-07-312-5/+5
|
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-31397-1314/+1371
| | | | | | | Basically trailing whitespaces removal, fix non standard keywords asm -> __asm__ inline -> __inline__ and some minor changes on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Update sh4 pthread_mutex_t definitionCarmelo Amoroso2008-07-311-3/+13
|
* Fix preprocessor directive to silent warningCarmelo Amoroso2008-07-311-1/+1
|
* Removed duplicated file (already moved into libc/misc/elf)Carmelo Amoroso2008-07-291-68/+0
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix build failure:Carmelo Amoroso2008-07-291-0/+2
| | | | | | | | | | | | | sh4-linux-uclibc-gcc \ -Wall -Wstrict-prototypes -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -fstrict-aliasing -mprefergot -Os -D_GNU_SOURCE -I../../test -ml -m4 -nostdinc -I../../install_dir/usr/include -I/opt/STM/STLinux-2.3/devkit/sh4_uclibc/lib/gcc/sh4-linux-uclibc/4.2.1//include-fixed -I/opt/STM/STLinux-2.3/devkit/sh4_uclibc/lib/gcc/sh4-linux-uclibc/4.2.1/include \ -fPIC -shared libtest.c -o libtest.so -Wl,-soname,libtest.so \ -s -B../../lib -Wl,-rpath,../../lib -Wl,-rpath-link,../../lib -Wl,-rpath,./ -Wl,--dynamic-linker,"/lib"/ld-uClibc.so.0 -Wl,--hash-style=gnu libtest.c: In function 'dltest': libtest.c:8: error: '__pthread_once' undeclared (first use in this function) libtest.c:8: error: (Each undeclared identifier is reported only once libtest.c:8: error: for each function it appears in.) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Use rtld_hidden_{proto,def} properly within ld.soCarmelo Amoroso2008-07-291-4/+4
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Remove .depend when doing distcleanCarmelo Amoroso2008-07-291-1/+1
|
* These are already unwired in kernel headers so dont worry about them in uclibcKhem Raj2008-07-171-18/+0
|
* Do not include libc-lock.h because uClibc_mutex.h is exported file and ↵Khem Raj2008-07-141-1/+0
| | | | several application using this headers fail because they do not get __extern_inline define and if cdefs.h is included then the mudslide begins. For now we will live with the warnings in uclibc build.
* Undefine some of redundant syscalls not used by EABI kernels. So uclibc ↵Khem Raj2008-07-142-2/+19
| | | | | | could use alternative implementations for them. include sys/syscalls.h in pt-gettimeofday.c
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-124-2/+116
| | | | Add NTPL testing support for ARM.
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-111-4/+1
| | | | | We have pt-sleep.c now no need to create link and worse make clean deletes the proper pt-sleep.c file.
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-117-18/+20
| | | | | | | | | | | | Hush compiler for extern inline warnings by using __extern_inline macro, this also makes gcc 4.3 happy. warning: C99 inline functions are not supported; using GNU89 warning: to disable this warning use -fgnu89-inline or the gnu Also fix this other warning. warning: missing braces around initializer warning: (near initialization for '_stdio_streams[0].__lock.__
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-113-20/+11
| | | | Fix ARM specific makefiles for NPTL build.
* uClibc_mutex.h should not include bits/libc-lock.h. Revert libtest.c ↵Carmelo Amoroso2008-07-112-1/+2
| | | | accordingly otherwise it cannot compile
* Ahhhhh too tired... I'm doing all wrong. Stop meCarmelo Amoroso2008-07-111-2/+2
|
* Resynch with trunk fixing problem on test build system due to my last commitCarmelo Amoroso2008-07-114-5/+15
|
* Avoid conflict with __pthread_once defined into bits/libc-lock.hCarmelo Amoroso2008-07-111-2/+0
|
* Revert previous useless change based on an older versionCarmelo Amoroso2008-07-111-4/+4
|
* Fix some __UCLIBC_IO_MUTEX_XXXX macro to be used without FUTEX support. ↵Carmelo Amoroso2008-07-116-103/+88
| | | | Thanks Khem for pointing this out
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-111-4/+4
| | | | Append the objects.
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-111-23/+8
| | | | Use wait4 for waitpid syscall.
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-112-31/+45
| | | | Replace the code which could force gcc to use libgcc division functions, the libgcc function inturn call 'raise' which is expected from uclibc which we are compiling. This avoids this circular dependency problem.
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-101-0/+1
| | | | Include <bits/libc-lock.h> to get *once* definitions.
* Remove trailing whitespaces and wrong preprocessed filesCarmelo Amoroso2008-07-106-16706/+31
|
* Exclude some files for ARM NPTL, Do not use _libc_fatalKhem Raj2008-07-103-4/+18
|
* Fix __USE_STDIO_FUTEXES__ falloutKhem Raj2008-07-101-4/+11
|
* Adjust for correct return values from dl_find_hashKhem Raj2008-07-101-11/+10
|
* Handle ARM TLS relocationsKhem Raj2008-07-103-13/+52
|
* Save PID across vfork syscall. Create a __clone() aliased to clone(). Load ↵Khem Raj2008-07-102-5/+31
| | | | arguments from stack into registers before making clone syscall
* Do not use push/pop in inline asm. It breaks unwindingKhem Raj2008-07-101-6/+10
|
* ARM specific NPTL bitsKhem Raj2008-07-1034-0/+2582
|
* Thumb atomic operations and makefile changes to accomodate NPTLKhem Raj2008-07-105-2/+157
|
* Add TLS reltypes for ARMKhem Raj2008-07-102-1/+14
|
* Handle system call names like __ARM_NR_set_tlsKhem Raj2008-07-101-6/+11
|