summaryrefslogtreecommitdiff
path: root/lib/libc/arch
AgeCommit message (Collapse)Author
2015-11-15Tweak previous: rename it to fpround() to match FreeBSDPhilip Guenther
requested by kettenis@
2015-11-15I got a round tuit to rename round() to roundit() to avoid gcc warning.Philip Guenther
ok deraadt@
2015-11-14Split the non-syscall ASM bits from SYS.h into DEFS.h and use that in thePhilip Guenther
non-syscall .S source ok millert@ miod@
2015-10-31Invoke the _HIDDEN() sigprocmask label rather than the public one.Miod Vallat
2015-10-31This is sigprocmask, not sigpending.Miod Vallat
2015-10-27Wrap the remaining math functions in libc: __fpclassify*(), __flt_rounds(),Philip Guenther
and ldexp(). ok millert@
2015-10-23Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadPhilip Guenther
into libc, and move pthread_sigmask() as well (just a trivial wrapper). This provides consistent handling of SIGTHR between single- and multi-threaded programs and is a step in the merge of all the libpthread overloads, providing some ASM and Makefile bits that the other wrappers will need. ok deraadt@ millert@
2015-10-18Pull in <float.h> instead of declaring __flt_rounds() locallyPhilip Guenther
ok miod@ jsg@
2015-10-17Rename SYSEXIT() to SYSCALL_END() for consistency with most other archs.Philip Guenther
No change in resulting object files ok millert@
2015-10-04Delete an inexplicable commentPhilip Guenther
2015-09-14vax deserves gdtoa love too!Philip Guenther
2015-09-13Need SYS.h for END_STRONG()Philip Guenther
2015-09-13Add hidden _libc_ aliases and symbol sizesPhilip Guenther
2015-09-13Add hidden _libc_ aliases and symbol sizesPhilip Guenther
prodded by semarie@
2015-09-13Uses angle brackets to include softfloat.h, and add the proper directory toMiod Vallat
CFLAGS. ok guenther@
2015-09-13Wrap <stdlib.h> so that calls go direct and the symbols not in thePhilip Guenther
C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
2015-09-13Do provide hidden _libc_* aliases for sig{block,setmask} and use them inPhilip Guenther
the ASM *setjmp implementations. Skip the PLT when calling them on amd64 (other archs to do this after testing) ok miod@
2015-09-10Adds hidden _libc_FOO aliases for the system call stubs.Philip Guenther
Stop generating _brk and _sbrk symbols: they've already been hidden. Set the ELF symbol size on the syscall stubs. Give the __{min,cur}brk symbols a size and type, and hide more jump labels. alpha, arm, m88k, sh, sparc, and vax assistance miod@ hppa assistance kettenis@ ok deraadt@ miod@
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2015-09-09Backtrack a little bit and don't try to use the per-thread errno location ifMark Kettenis
r2 is zero. Some upcoming changes will probably change the offset at which the errno pointer is stored, or might even store errno directly. Instead, call __errno to get the location of errno. Make sure we go through the PLT such that we call the version in libpthread if it is linked in. Set up r30 for this purpose. The ___cerrno function itself remains protected. ok guenther@
2015-09-05Fix previous: restore a PSEUDO_SUFFIX macro to actually handle errno and returnPhilip Guenther
cone of shame guenther@ ok deraadt@
2015-09-05This is probably what guenther@ had in mind.Miod Vallat
2015-09-05Adds hidden _libc_FOO aliases for the system call stubs.Philip Guenther
Stop generating _brk and _sbrk symbols: they've already been hidden. Set the ELF symbol size on the syscall stubs. Give the __{min,cur}brk symbols a size and type, and hide more jump labels. ok deraadt@
2015-08-31use #function rather than @function on armTheo de Raadt
ok guenther
2015-08-31Also add ALTEXIT_{STRONG,WEAK} to hppa64, copied from hppa. Document'em tooPhilip Guenther
ok deraadt@
2015-08-31Add ALTEXIT_{STRONG,WEAK} to support wrapping of functions using ALTENTRY.Philip Guenther
Fix memmove with that ok deraadt@
2015-08-31Add framework for resolving (pun intended) libc namespace issues, usingPhilip Guenther
wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2015-08-27fix commentPhilip Guenther
2015-08-26Sync with other per-arch Symbols.list filesPhilip Guenther
2015-08-26Hide many (194!) symbols that nothing should be using.Philip Guenther
Delete exect(2); it wasn't portable across archs and nothing used it. ports test build by naddy@ ok deraadt@ kettenis@
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2015-08-25catch upMiod Vallat
2015-08-23Make __cerror() use the per-thread errno location if r2 isn't zero. This wayMark Kettenis
libpthread no longer has to override it which means that we can use a local call and can avoid setting up r30 as a _GLOBAL_OFFSET_TABLE_ pointer, which is hard the way the powerpc ABI works. For now we continue to provide __cerror as a weak symbol, but ___cerror is now protected and internal calls within libc now use ___cerror instead of __cerror. discussed with guenther@
2015-08-23Fetch the _GLOBAL_OFFSET_TABLE_ pointer in a way that's compatible with theMark Kettenis
Secure-PLT ABI.
2015-08-23Set up r30 with the _GLOBAL_OFFSET_TABLE_ pointer as required by theMark Kettenis
Secure-PLT ABI.
2015-08-22Explicitly list the symbols permitted to be exported by libc.Philip Guenther
This is primed with the current list of exported symbols so it doesn't change the ABI yet, but will prevent unintentional additions in the future and sets the stage for reductions. ok deraadt@ kettenis@
2015-06-17Set FUNC symbol sizes of auto-generated and hand-written syscall wrappers.Masao Uebayashi
Original diff from guenther@, adjusted by me. OK guenther@
2015-06-12Reuse SYSENTRY_HIDDEN() in SYSENTRY(); no functional changes.Masao Uebayashi
2015-06-08At some point arm moved to a unified syntax for arm and thumb instructions.Jonathan Gray
While binutils supports both "unified" and "divided" syntax (defaulting to divided) the integrated assembler in clang only supports unified names so switch some files to unified syntax. Similiar changes were made in bitrig and freebsd. No difference in objdump -d output. tested on zaurus by deraadt@, ok miod@
2015-06-01Since the __{div,rem}{l,q}{,u} special libc entry points use a specificMiod Vallat
calling convention which conflicts over t11 usage with the secureplt calling convention, force these symbols to be `notype' rather `function', so that the linker will not attempt to use plt relocations for them in the absence of explicit relocation information. Note that these symbols are still public and still callable with the old plt convention, so existing binaries will still work with an updated libc, and no libc version change is necessary.
2015-06-01Put END() matching _ENTRY() (== ENTRY() w/o prof).Masao Uebayashi
2015-06-01Put END() matching ENTRY().Masao Uebayashi
2015-05-29Put END() where appropriate.Masao Uebayashi
While here, kill redundant use of _C_LABEL() in ENTRY().
2015-05-29Put obvious END() macros that match ENTRY() entries.Masao Uebayashi
2015-05-29Sprinkle END() in some straightforward *.S files that have ENTRY(). TheMasao Uebayashi
resulting *.o have "FUNC" symbols with size set.
2015-05-26Bring back `1:' label removed by mistake in 1.7. Complained loudly about by gasMiod Vallat
2.17, while 2.15 didn't care, which just caused a cold shiver accross my spine.
2015-05-15Make index/rindex weak aliases of strchr/strrchr since they are notTodd C. Miller
part of the ISO C standard and have also been dropped from POSIX. OK guenther@ kettenis@
2015-05-14Use STRONG_ALIAS instead of ALTENTRY.Mark Kettenis
ok millert@
2015-05-12Put the right number of leading underscores in ___cerror and __cerror, forMiod Vallat
the sake of libpthread. Probably missed during the a.out->ELF switch, I can't believe this went unnoticed for so long.