| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
PLT entries and prevent overriding
ok kettenis@ deraadt@
|
|
|
|
|
|
|
| |
by the ASM stub, which is also in libc. The compiler only generates
invocations of the latter.
ok mpi@ deraadt@ kettenis@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
Tweak the PSEUDO() macro to avoid that.
problem noted and tested by kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug exposed by erratic sqlite3 behavior used in ports/devel/proj,
as pointed out by landry@. Richard Hipps (SQLite) pointed at the
culprit (_Qp_div), many thanks.
Adapted from FreeBSD revision 146673 by Stephen Paskaluk and
stefanf@FreeBSD. FreeBSD commit message:
"""
Fix long (and long long) to long double, unsigned to long double and
unsigned long (and unsigned long long) to long double conversions.
- Add a parameter that specifies the position of the sign bit to the _QP_TTOQ
macro, previously it always looked at bit 31. Pass a negative number to
disable sign inspection for unsigned types. This fixes _Qp_xtoq(),
_Qp_uitoq() and _Qp_uxtoq().
- In the functions __fpu_itof() and __fpu_xtof(), look at the sign
bit to decide whether we're doing a conversion from an unsigned type. If so, don't
negate the mantissa if the integer exceeds the biggest signed number.
"""
ok deraadt@
|
|
|
|
| |
ok mortimer@
|
|
|
|
|
|
| |
that includes retguard code.
ok mortimer@
|
|
|
|
|
|
| |
gadgets from libc.
ok deraadt@, kettenis@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
understand with the three-operand instructions.
No binary change with gas.
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
| |
cases in kernel and libc.
ok deraadt@
|
|
|
|
|
|
|
| |
ENTRY is a trapsled. Fix a few functions which fall-through into an ENTRY
macro. amd64 binaries now are free of double+-nop sequences (except for one
assember nit in aes-586.pl). Previous changes by guenther got us here.
ok mortimer kettenis
|
|
|
|
| |
ok deraadt
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
Convert __cerror to hidden visibility.
from miod@
|
|
|
|
| |
ok drahm@
|
|
|
|
|
|
| |
so passing "nan" and "-nan" produces a NaN with the right sign.
Bug reported and diff provided by George Koehler.
ok kettenis@
|
|
|
|
|
|
| |
take care of this.
ok visa@, mpi@
|
|
|
|
|
|
|
| |
floating-point exceptions, simplify the functions that control the exception
masks just like we did on armv7.
ok tom@
|
|
|
|
|
|
|
|
|
|
| |
both the hardfloat (FPU registers) and softfloat (software) state. This
makes these functions work correctly when mixing hardfloat and softfloat
code. Disable trapping for softfloat since most (if not all) ARMv7 and
ARMv8 hardware that is on the market doesn't support trapping of
floating-point exceptions.
ok patrick@
|
| |
|
|
|
|
|
|
|
|
|
| |
since ARMv5. Should be much faster but more importantly it removes the
data table from .text which could introduce unwanted ROP gadgets.
Based on changes in Android/Bionic by Elliott Hughes.
ok patrick@
|
|
|
|
|
|
|
|
|
|
|
| |
The error was:
--8<--
ffs.S:57:2: error: unsupported relocation on symbol
adrne r2, .L_ffs_table
^
-->8--
Minimal workaround suggested by deraadt@, ok guenther@ kettenis@
|
| |
|
| |
|
|
|
|
|
|
|
| |
dance, mark it protected. This works better for both gcc and clang: gcc
blocks overriding of internal calls, while clang permits inlining again.
ok otto@
|
|
|
|
|
|
| |
bump.
"just go ahead -- crank" deraadt@
|
|
|
|
|
|
| |
so that <machine/signal.h> is not needed in setjmp.S.
Suggested by kettenis@ long ago, OK deraadt@
|
|
|
|
|
|
| |
in libc.
ok patrick@, jsg@, guenther@
|
|
|
|
| |
Slightly tweaked diff from guenther@
|
|
|
|
|
|
|
|
|
| |
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.
ok kettenis@
|
|
|
|
|
|
|
|
| |
with "warning: " since 2003, so the messages themselves need not
contain the prefix anymore.
From Scott Cheloha
ok jca, deraadt
|
|
|
|
| |
ok patrick@
|
|
|
|
|
|
| |
and the resulting byte-alignment triggers unaligned access.
ok patrick@, deraadt@
|
|
|
|
| |
ok kettenis@ deraadt@
|
|
|
|
|
| |
suggested by miod@
ok kettenis@
|
|
|
|
|
| |
Also, '_memcpy' and '_stack' were specific to arm and should not have been
copied here
|
|
|
|
|
|
|
|
|
| |
unneeded linker-generated symbols and libgcc symbols that are accidentally
re-exported.
Riding the upcoming libc major bump.
ok guenther@
|
|
|
|
|
|
|
|
|
|
| |
of a denormal result of ldexp(3).
The bug was found when investigating why denormal results
of pow(3) can have an incorrect sign on loongson.
pow(3) misbehaviour reported and fix tested by juanfra@
No objection from deraadt@
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
from libpthread to libc. No changes to the build yet, just making it
easier to review the substantive diffs.
ok beck@ kettenis@ tedu@
|
|
|
|
|
|
|
| |
from libpthread to libc. No changes to the build yet, just making it
easier to review the substantive diffs.
ok beck@ kettenis@ tedu@
|
|
|
|
|
| |
These hints are not recognized by clang's builtin assembler.
From the corresponding amd64 change. ok visa@ kettenis@
|
|
|
|
| |
ok jsg@
|
|
|
|
|
|
|
| |
__weak_alias() uses
problem noted by drahn@
ok kettenis@
|
|
|
|
|
|
|
| |
Set the size of the sig{set,long}jmp symbols
testing help jsg@
ok kettenis@
|
|
|
|
| |
ok patrick@ kettenis@
|