Age | Commit message (Collapse) | Author |
|
|
|
|
|
Delete exect(2); it wasn't portable across archs and nothing used it.
ports test build by naddy@
ok deraadt@ kettenis@
|
|
NetBSD.
|
|
|
|
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@
|
|
Secure-PLT ABI.
|
|
Secure-PLT ABI.
|
|
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@
|
|
Original diff from guenther@, adjusted by me.
OK guenther@
|
|
|
|
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@
|
|
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.
|
|
|
|
|
|
While here, kill redundant use of _C_LABEL() in ENTRY().
|
|
|
|
resulting *.o have "FUNC" symbols with size set.
|
|
2.17, while 2.15 didn't care, which just caused a cold shiver accross my spine.
|
|
part of the ISO C standard and have also been dropped from POSIX.
OK guenther@ kettenis@
|
|
ok millert@
|
|
the sake of libpthread. Probably missed during the a.out->ELF switch, I
can't believe this went unnoticed for so long.
|
|
is zero in the child
ok deraadt@ miod@
|
|
unregistering callbacks if the DSO is unloaded. Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.
verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
|
|
unused for around 8 years, when the kernel ABI was changed to use the
syscall number specified in r12.
ok miod@ jsg@
|
|
for a long time, so there's no need to test the second return register here
in the asm stub.
ok and testing of many archs by krw@ miod@
|
|
NetBSD.
|
|
ok millert@, kettenis@
|
|
ok deraadt
|
|
and strlen that provide a significantly faster performance than our
previous .c or .S implementations. Based on NetBSD's code.
Tested with different amd64 CPUs.
ok deraadt@ mikeb@
|
|
beneficial because the compiler tends to do small known-size blocks
inline. Continue using the MI memcpy.c for now.
ok miod
|
|
MI syslog_r/abort version for the time being.
ok miod
|
|
|
|
|
|
(potentially) MD versions (function dependent, not filename dependent)
split out memcpy/memmove/bcopy and strchr/index/strrchr/rindex
Bring back amd64 .S versions
And the final touch: switch all architectures temporarily to MI
memcpy.c, which contains syslog + abort for overlapping copies. A nice
harsh undefined behaviour. We will clean the entire userland of the
remaining issues in this catagory, then switch to the optimised memcpy
which skips the memmove check.
I tried to cut this change into pieces, but testing each sub-step on
every architecture is too time consuming and mindnumbing.
ok miod
|
|
NetBSD.
|
|
|
|
causing as(1) to create a wrong nop-sled for text segment aligns.
Revert, until it is found and fixed.
|
|
code is already used in the kernel and the files are unmodified copies
from src/sys/lib/libkern/arch/amd64/. Depending on the function, this
gives us some speedup in userland.
ok deraadt@, no objections from miod@
|
|
ok deraadt@
|
|
of the result in many cases. From FreeBSD allbeit with some changes to
keep the coding style consistent. This fixes the asinhl(4) issue reported
by dickman@ on tech@.
|
|
circular lists. Amazingly, they managed to extend the requirements to no
longer match the behavior of the VAX instructions they were modeled after,
so the trivial VAX ASM versions have to go. Nice job breaking it, X/Open!
Based on a diff from enh (at) google.com
ok miod@
|
|
being-standardized <endian.h>
ok deraadt@ millert@ beck@
|
|
NetBSD.
|
|
|
|
last 15 years and there is no point to use it in the future.
From Jean-Philippe Ouellet
|
|
For large integral values, modf returned uninitialized data in iptr since 1992.
Found while debugging python segfaults.
ok miod
|
|
A while back, pascal@ converted our system call stubs from using "cpp
| as" to "cc -x assembler-with-cpp", so there's no need to stay
compatible with ancient preprocessor semantics.
ok miod
|
|
|
|
NetBSD.
|