| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
As part of the code refactoring to support FORTIFY_SOURCE we want
a new subdirectory "secure" to keep the files related to security.
Move the stack protector functions to this new directory.
No functional change.
Differential Review: https://reviews.freebsd.org/D3333
Notes:
svn path=/head/; revision=286760
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a constant array for the MIB. Newer LLVM decided that mib[] warranted
stack protections, with the obvious crash after the setup was done.
As a positive side effect, code size shrinks a bit.
I'm not sure why this hasn't bitten us yes, but it is certainly possible and
there are no real drawbacks to this change anyway.
Submitted by: pfg
Obtained from: NetBSD
MFC after: 1 week
Notes:
svn path=/head/; revision=284377
|
| |
|
|
|
|
|
| |
Reported by: sbruno
Notes:
svn path=/head/; revision=275004
|
| |
|
|
|
|
|
|
|
|
|
| |
It is automatically set when -fPIC is passed to the compiler.
Reviewed by: dim, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1179
Notes:
svn path=/head/; revision=274772
|
| |
|
|
|
|
|
|
|
|
| |
* When calling syslog(), pass a format string.
* Define YY_NO_INPUT on nslexer.l
Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
Notes:
svn path=/head/; revision=213785
|
| |
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=211750
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
the separate .o for libc_pic.a. This prevents rtld from making the
symbol global.
Putting the stack_protector_compat.c into the public domain acknowledged
by kan.
Reviewed by: kan
MFC after: 2 weeks
Notes:
svn path=/head/; revision=211748
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
number of host CPUs and osreldate.
This eliminates the last sysctl(2) calls from the dynamically linked image
startup.
No objections from: kan
Tested by: marius (sparc64)
MFC after: 1 month
Notes:
svn path=/head/; revision=211416
|
| |
|
|
|
|
|
|
|
| |
needed to satisfy static libraries that are compiled with -fpic
and linked into static binary afterwards. Several libraries in
gcc are examples of such static libs.
Notes:
svn path=/head/; revision=197277
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
compiled with stack protector.
Use libssp_nonshared library to pull __stack_chk_fail_local symbol into
each library that needs it instead of pulling it from libc. GCC
generates local calls to this function which result in absolute
relocations put into position-independent code segment, making dynamic
loader do extra work every time given shared library is being relocated
and making affected text pages non-shareable.
Reviewed by: kib
Approved by: re (kib)
Notes:
svn path=/head/; revision=195697
|
| |
|
|
|
|
|
| |
Approved by: re (impliciti, by approving previos check-in)
Notes:
svn path=/head/; revision=195152
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use libssp_nonshared library to pull __stack_chk_fail_local symbol into
each library that needs it instead of pulling it from libc. GCC generates
local calls to this function which result in absolute relocations put into
position-independent code segment, making dynamic loader do extra work everys
time given shared library is being relocated and making affected text pages
non-shareable.
Reviewed by: kib
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=195151
|
| |
|
|
| |
Notes:
svn path=/head/; revision=170321
|
|
|
SSP functions into FreeBSD libc. Use the same file name and location
for consistency with other projects.
Notes:
svn path=/head/; revision=169719
|