aboutsummaryrefslogtreecommitdiff
path: root/arch/sh (follow)
Commit message (Expand)AuthorAgeFilesLines
* dynamic linker: permit error returns from arch-specific reloc function•••the immediate motivation is supporting TLSDESC relocations which require allocation and thus may fail (unless we pre-allocate), but this mechanism should also be used for throwing an error on unsupported or invalid relocation types, and perhaps in certain cases, for reporting when a relocation is not satisfiable. Rich Felker2014-06-161-1/+2
* fix RLIMIT_ constants for mips•••The mips arch is special in that it uses different RLIMIT_ numbers than other archs, so allow bits/resource.h to override the default RLIMIT_ numbers (empty on all archs except mips). Reported by orc. Szabolcs Nagy2014-04-151-0/+0
* fix signal.h breakage from moving stack_t to arch-specific bits•••in the previous changes, I missed the fact that both the prototype of the sigaltstack function and the definition of ucontext_t depend on stack_t. Rich Felker2014-03-181-6/+6
* move signal.h definition of stack_t to arch-specific bits•••it's different at least on mips. mips version will be fixed in a separate commit to show the change. Rich Felker2014-03-181-0/+6
* fix typo in filename used in sh portRich Felker2014-03-181-0/+0
* superh: fix dynamic linking of __fpscr_values•••Applications ended up with copy relocations for this array, which resulted in libc's references to this array pointing to the application's copy. The dynamic linker, however, can require this array before the application is relocated, and therefore before the application's copy of this array is initialized. This resulted in garbage being loaded into FPSCR before executing main, which violated the ABI. We fix this by putting the array in crt1 and making the libc copy private. This prevents libc's reference to the array from pointing to an uninitialized copy in the application. Bobby Bingham2014-03-162-1/+7
* move struct semid_ds to from shared sys/sem.h to bits•••the definition was found to be incorrect at least for powerpc, and fixing this cleanly requires making the definition arch-specific. this will allow cleaning up the definition for other archs to make it more specific, and reversing some of the ugliness (time_t hacks) introduced with the x32 port. this first commit simply copies the existing definition to each arch without any changes. this is intentional, to make it easier to review changes made on a per-arch basis. Rich Felker2014-03-111-0/+16
* add bits/user.h for sh port•••this seems to have been overlooked, and resulted in breakage in anything including sys/user.h. Rich Felker2014-03-081-0/+75
* add nofpu subarchs to the sh arch, and properly detect compiler's fpu configRich Felker2014-02-271-0/+9
* fix endian subarchs for sh arch•••default endianness for sh on linux is little, and while conventions vary, "eb" seems to be the most widely used suffix for big endian. Rich Felker2014-02-272-5/+5
* rename superh port to "sh" for consistency•••linux, gcc, etc. all use "sh" as the name for the superh arch. there was already some inconsistency internally in musl: the dynamic linker was searching for "ld-musl-sh.path" as its path file despite its own name being "ld-musl-superh.so.1". there was some sentiment in both directions as to how to resolve the inconsistency, but overall "sh" was favored. Rich Felker2014-02-2730-0/+1950