master
remove duplicate strrchr.c entry in SRCS ok deraadt@
Stop exporting _memcpy, an implementation detail of bcopy/memcpy/memmove
Address the clang 13 "changed binding to STB_WEAK" warning on arm (32bit): * add _?ENTRY_NB to arm/asm.h * make sure ld.so's arm asm bits see the same includes as libc * switch libc's arm bits to the generic DEFS.h * switch arm ASM bits from ENTRY to ENTRY_NB as necessary
Implement ffs(3) using the CLZ instructions which has been available ever since ARMv5. Should be much faster but more importantly it removes the data table from .text which could introduce unwanted ROP gadgets.
Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmp Eliminate pointless use of PIC_SYM() Split out DEFS.h from SYS.h like some other archs
clang doesn't propagate attributes like "asm labels" and "visibility(hidden)" to builtins like mem{set,cpy,move} and __stack_smash_handler. So, when building with clang, instead mark those as protected visibility to get rid of the PLT relocations. We can't take the address of them then, but that's ok: it's a build-time error not a run-time error.