aboutsummaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh
Commit message (Collapse)AuthorAgeFilesLines
* SH-2A FDPIC supportsuperh_fdpicGravatar Andrew Stubbs2011-02-238-7/+605
| | | | | | These are the changes used in CodeSourcery's SH-2A uClinux Lite toolchains. Signed-off-by: Andrew Stubbs <ams@codesourcery.com>
* Add position independent code for crt1.S.Gravatar Carmelo Amoroso2009-05-051-0/+45
| | | | | | | | | This will generate a Scrt1.o that is linked to executabled when compiled as PIE code (position independent executable) without requiring relocation in .text section (not allowed on uclibc/sh4). Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Use gcc built-in defines for detecting SH cores instead ofGravatar Carmelo Amoroso2009-02-236-7/+7
| | | | | | | | | | | | | uclibc config option macros (aligning SH to all other archs). Changes applied as below: __CONFIG_SH4__ -> __SH4__ __CONFIG_SH2__ -> __sh2__ __CONFIG_SH2A__ -> __SH2A__ Note: pay attention to capital letters Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix my previous commit to use preprocessor in the right way !Gravatar Carmelo Amoroso2009-02-201-1/+1
|
* Fix typo.Gravatar Carmelo Amoroso2009-02-201-1/+1
|
* sh: Fix __SH_SYSCALL_TRAP_BASE for SH2A architectureGravatar Carmelo Amoroso2009-02-201-1/+1
| | | | Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
* *: remove some __libc_XXX functions:Gravatar Denis Vlasenko2008-12-101-4/+4
| | | | | | | | | | | | __libc_accept __libc_close __libc_connect __libc_creat __libc_creat64 __libc_fsync __libc_lseek __libc_lseek64 __libc_msync __libc_nanosleep __libc_open __libc_open64 __libc_pause __libc_read __libc_readv __libc_recv __libc_recvfrom __libc_recvmsg __libc_send __libc_sendmsg __libc_sendto __libc_tcdrain __libc_wait __libc_waitpid __libc_write __libc_writev They were removed from glibc 1 May 2004: http://sources.redhat.com/ml/libc-hacker/2004-05/msg00001.html
* Make __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__ visible in case the archGravatar Carmelo Amoroso2008-11-271-0/+3
| | | | | | | supports this feature. SH4 will use this in some aseembly files for the NPTL implementation. Add now safely on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* fix ioperm build problems caused by libc_hidden_proto removalGravatar Denis Vlasenko2008-11-211-0/+1
|
* Last portion of libc_hidden_proto removal.Gravatar Denis Vlasenko2008-11-201-1/+1
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalGravatar Denis Vlasenko2008-11-203-3/+3
|
* - Remove linux-specific prototypes if asked to.Gravatar Bernhard Reutner-Fischer2008-11-151-2/+2
|
* - revert wrong r24049Gravatar Bernhard Reutner-Fischer2008-11-151-2/+2
|
* - Remove linux-specific prototypes if asked to.Gravatar Bernhard Reutner-Fischer2008-11-151-2/+2
|
* - trim superfluous ';'. No objcode changesGravatar Bernhard Reutner-Fischer2008-10-282-3/+3
|
* - remove superfluous ';'. No objcode changes.Gravatar Bernhard Reutner-Fischer2008-10-221-1/+1
|
* - add long double math wrappers (Ned Ludd)Gravatar Bernhard Reutner-Fischer2008-10-031-6/+0
|
* - use c89-style commentsGravatar Bernhard Reutner-Fischer2008-10-032-11/+11
| | | | Closes issue #5194
* sh: Fix SYSCALL_INST_STRx to work for SH-2[A] core by using theGravatar Carmelo Amoroso2008-09-251-7/+8
| | | | | | __SH_SYSCALL_TRAP_BASE macro. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Add INTERNAL_SYSCALL macros for shGravatar Carmelo Amoroso2008-09-161-0/+145
|
* - add sync_file_range()Gravatar Bernhard Reutner-Fischer2008-09-161-4/+0
| | | | Tested successfully on i386..
* Follow sh asm convention to indent the instruction into the delay slot.Gravatar Carmelo Amoroso2008-09-041-2/+2
| | | | (glibc community refused to apply a my patch for this :-) )
* Kill off the GOT lookup for init/fini in the sh crti.S. This wasGravatar Paul Mundt2008-09-041-23/+0
| | | | | | | | 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.
* Fix SH ldso sequence startup.Gravatar Carmelo Amoroso2008-08-081-2/+8
| | | | | | | | | | | | | | | | | | 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>
* - trim any trailing whitespaceGravatar Bernhard Reutner-Fischer2008-07-232-4/+4
|
* - fix inline keywordGravatar Bernhard Reutner-Fischer2008-07-231-2/+2
|
* - fix asm and volatile keywordsGravatar Bernhard Reutner-Fischer2008-07-231-21/+21
|
* sh4 don't need to cope with older RLIMIT implementation.Gravatar Carmelo Amoroso2008-07-081-1/+1
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - add missing #endifGravatar Bernhard Reutner-Fischer2008-05-031-0/+1
|
* - implement splice,vmsplice,tee for all archesGravatar Bernhard Reutner-Fischer2008-05-031-12/+27
| | | | - synch F_LINUX_SPECIFIC_BASE related fcntls for all arches
* A patch from our Blackfin repository, originally from Jie Zhang. This fixesGravatar Bernd Schmidt2008-01-171-3/+0
| | | | | | | | | | | | | a problem where the linker was trying to use the wrong symbol name for the init function. Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960, microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets which define SYMBOL_PREFIX as _. Remove defines and undefs from uClibc_arch_features.h of each target. Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
* change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Gravatar Mike Frysinger2008-01-081-1/+1
| | | | doing double negatives
* whitespace only: touchups from Hans-Christian EgtvedtGravatar Mike Frysinger2008-01-051-2/+2
|
* Carmelo AMOROSO <carmelo.amoroso@st.com> writes:Gravatar Joakim Tjernlund2007-06-131-2/+14
| | | | | | | | Hi All, this patch fixes a mismatch in ucontext struct between uClibc and kernel. In this way a signal handler installed by sigaction can access to the whole machine state correctly. This can be applied both to trunk and nptl branch
* Carmelo AMOROSO writes:Gravatar Mike Frysinger2007-04-301-2/+2
| | | | | | | running LTP test suite on uClibc-nptl for sh4 I found a bug into pread and pwrite functions. When the offset is negative it is not correctly handled due to a missing shift operation, so it is passed to the syscall as the highest unsigned positive value.
* fixes from Carmelo AMOROSO to depend less on kernel headersGravatar Mike Frysinger2007-04-021-1/+10
|
* dont include asm/user.hGravatar Mike Frysinger2007-03-141-3/+53
|
* Sync sh's procfs.h with glibc, fixes gdbserver.Gravatar Paul Mundt2007-03-071-2/+2
| | | | | Patch from Carmelo Amoroso <carmelo73@gmail.com>.
* Fix PLTJMP() token pasting build error, patch fromGravatar Paul Mundt2007-03-071-1/+1
| | | | | Carmelo Amoroso <carmelo73@gmail.com>.
* sh crti.S needs features.h to resolve __HAVE_SHARED__, trivial patchGravatar Paul Mundt2007-02-071-0/+2
| | | | | from Carmelo Amoroso <carmelo73@gmail.com>.
* fixup includes so we compile againGravatar Mike Frysinger2007-02-042-6/+4
|
* fix compiling and touchup styleGravatar Mike Frysinger2007-02-041-14/+16
|
* Take Mike Frysinger's comments into account -- make certain that userGravatar Eric Andersen2006-12-084-8/+3
| | | | | applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file.
* bits/kernel_stat.h is for internal uClibc use only, fix a few otherGravatar Eric Andersen2006-12-061-0/+4
| | | | minor include file issues
* Merge SH-2 trapa fixups from Mark.Gravatar Paul Mundt2006-10-238-42/+61
| | | | | | | | | | | | | | | | | | | | 2006-10-16 Mark Shinwell <shinwell@codesourcery.com> * libc/sysdeps/linux/sh/vfork.S: Use __SH_SYSCALL_TRAP_BASE. Also use __CONFIG_SH2__ rather than __sh2__, for consistency. * libc/sysdeps/linux/sh/syscall.c: Use __SH_SYSCALL_TRAP_BASE. * libc/sysdeps/linux/sh/bits/uClibc_arch_features.h: Use __CONFIG_SH2__ rather than __sh2__, for consistency. * libc/sysdeps/linux/sh/bits/syscalls.h (__SH_SYSCALL_TRAP_BASE): New. Use instead of hard-coded trap numbers in the various __NR_<name> macros. * libc/sysdeps/linux/sh/clone.S: Use __SH_SYSCALL_TRAP_BASE. Also use __CONFIG_SH2__ rather than __sh2__, for consistency. * libc/sysdeps/linux/sh/crti.S: Disable GOT-related code if __HAVE_SHARED__ is not set. * libc/sysdeps/linux/sh/pipe.c (pipe): Use __SH_SYSCALL_TRAP_BASE.
* Bump SHMLBA up to a sensible size for dcache alias avoidance to coincide withGravatar Paul Mundt2006-08-251-0/+109
| | | | | | | the kernel's get_unmapped_area() behaviour. Ideally this should be more tightly packed based off of the L1 dcache shape, once we're able to handle it through the auxiliary vector.
* fix from psm: enable readahead prototypeGravatar Mike Frysinger2006-08-241-1/+3
|
* fix from psm: just use common resource.hGravatar Mike Frysinger2006-08-241-209/+0
|
* sync with psm: update errno handling to be the same on all archesGravatar Mike Frysinger2006-08-231-7/+4
|
* sync with upstream via psmGravatar Mike Frysinger2006-08-234-61/+47
|