|
Revision tags: release/12.4.0, release/13.1.0 |
|
| #
137f2548 |
| 18-Feb-2022 |
Piotr Kubaj <[email protected]> |
powerpc: enable initial-exec TLS
Summary: Use initial-exec, like other architectures.
While here, switch MACHINE_ARCH in lib/libc/Makefile to LIBC_ARCH and consistently use powerpc.
Subscribers: i
powerpc: enable initial-exec TLS
Summary: Use initial-exec, like other architectures.
While here, switch MACHINE_ARCH in lib/libc/Makefile to LIBC_ARCH and consistently use powerpc.
Subscribers: imp, #contributor_reviews_base
Differential Revision: https://reviews.freebsd.org/D34315 Reviewed by: luporl MFC after: 2 weeks
(cherry picked from commit 884ba43116d4456d5900d3c8824153c604f132b8)
show more ...
|
|
Revision tags: release/12.3.0 |
|
| #
ad9f3a91 |
| 16-Jul-2021 |
Mark Johnston <[email protected]> |
libc: Use the initial-exec TLS model
This permits more efficient accesses of thread-local variables, which are heavily used at least by jemalloc and locale-aware code. Note that on amd64 and i386,
libc: Use the initial-exec TLS model
This permits more efficient accesses of thread-local variables, which are heavily used at least by jemalloc and locale-aware code. Note that on amd64 and i386, jemalloc's thread-local variables already have their TLS model overridden by defining JEMALLOC_TLS_MODEL.
For now the change is applied only to tested platforms, but should in principle be enabled everywhere.
PR: 255840 Suggested by: jrtc27 Reviewed by: kib Sponsored by: The FreeBSD Foundation
(cherry picked from commit 9c97062b620137a1f7cad4c6b3fb030a396b3266)
show more ...
|
|
Revision tags: release/13.0.0 |
|
| #
166b390b |
| 05-Apr-2021 |
Konstantin Belousov <[email protected]> |
libc: include rtld.h into static implementations of rtld interface
(cherry picked from commit 7f7489eba391a858b3930a34e7749d642b374c5c)
|
|
Revision tags: release/12.2.0 |
|
| #
24faccc2 |
| 23-Sep-2020 |
Brandon Bergren <[email protected]> |
[PowerPC64LE] Use a shared LIBC_ARCH for powerpc64le.
Given that we have converted to ELFv2 for BE already, endianness is the only difference between the two ARCHs.
As such, there is no need to dif
[PowerPC64LE] Use a shared LIBC_ARCH for powerpc64le.
Given that we have converted to ELFv2 for BE already, endianness is the only difference between the two ARCHs.
As such, there is no need to differentiate LIBC_ARCH between the two.
Combining them like this lets us avoid needing to have two copies of several bits for no good reason.
Sponsored by: Tag1 Consulting, Inc.
show more ...
|
| #
f2be828f |
| 19-Jul-2020 |
Simon J. Gerraty <[email protected]> |
Revert that!
|
| #
e17f5b1d |
| 19-Jul-2020 |
Simon J. Gerraty <[email protected]> |
Oops missed Makefile.config
|
|
Revision tags: release/11.4.0 |
|
| #
a5b6c296 |
| 26-Feb-2020 |
Warner Losh <[email protected]> |
Remove sparc64 specific parts of libc.
Also update comments for which architectures use 128 bit long doubles, as appropriate.
The softfloat specialization routines weren't updated since they appear
Remove sparc64 specific parts of libc.
Also update comments for which architectures use 128 bit long doubles, as appropriate.
The softfloat specialization routines weren't updated since they appear to be from an upstream source which we may want to update in the future to get a more favorable license.
Reviewed by: emaste@ Differential Revision: https://reviews.freebsd.org/D23658
show more ...
|
| #
0f611708 |
| 05-Feb-2020 |
Ed Maste <[email protected]> |
libssp_nonshared: use only on i386 and ppc
libssp_nonshared.a defines one symbol, __stack_chk_fail_local. This is used only on i386 and powerpc; other archs emit calls directly to __stack_chk_fail.
libssp_nonshared: use only on i386 and ppc
libssp_nonshared.a defines one symbol, __stack_chk_fail_local. This is used only on i386 and powerpc; other archs emit calls directly to __stack_chk_fail. Simplify linking on other archs by omitting it.
PR: 242941 [exp-run]
show more ...
|
|
Revision tags: release/12.1.0, release/11.3.0 |
|
| #
09b47fc1 |
| 28-Mar-2019 |
Ed Maste <[email protected]> |
revert r341429 "disable BIND_NOW in libc, libthr, and rtld"
r345620 by kib@ fixed the rtld issue that caused a crash at startup during resolution of libc's ifuncs with BIND_NOW.
PR: 233333 Sponsor
revert r341429 "disable BIND_NOW in libc, libthr, and rtld"
r345620 by kib@ fixed the rtld issue that caused a crash at startup during resolution of libc's ifuncs with BIND_NOW.
PR: 233333 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
071bca67 |
| 14-Feb-2019 |
Konstantin Belousov <[email protected]> |
Unify i386 and amd64 getcontextx.c, and use ifuncs while there.
In particular, use ifuncs for __getcontextx_size(), also calculate the size of the extended save area in resolver. Same for __fillcon
Unify i386 and amd64 getcontextx.c, and use ifuncs while there.
In particular, use ifuncs for __getcontextx_size(), also calculate the size of the extended save area in resolver. Same for __fillcontextx2().
Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|
|
Revision tags: release/12.0.0 |
|
| #
0e450664 |
| 03-Dec-2018 |
Ed Maste <[email protected]> |
disable BIND_NOW in libc, libthr, and rtld
An issue remains with BIND_NOW and processes using threads. For now, restore libc's BIND_NOW disable, and also disable BIND_NOW in rtld and libthr.
A pat
disable BIND_NOW in libc, libthr, and rtld
An issue remains with BIND_NOW and processes using threads. For now, restore libc's BIND_NOW disable, and also disable BIND_NOW in rtld and libthr.
A patch is in review (D18400) that likely fixes this issue, but just disable BIND_NOW pending further testing after it is committed.
PR: 233333 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
cac83db9 |
| 26-Nov-2018 |
Ed Maste <[email protected]> |
revert r340640 "libc: forcibly disable BIND_NOW"
When immediate bind mode is requested, as of r340675 rtld processes irelocs in PLT immediately after other PLT relocs. That addresses the libc + BIN
revert r340640 "libc: forcibly disable BIND_NOW"
When immediate bind mode is requested, as of r340675 rtld processes irelocs in PLT immediately after other PLT relocs. That addresses the libc + BIND_NOW startup crash the workaround is no longer needed.
PR: 233333
show more ...
|
| #
00bf4d25 |
| 19-Nov-2018 |
Ed Maste <[email protected]> |
libc: forcibly disable BIND_NOW
Building libc WITH_BIND_NOW results in segfault at process start. For now force BIND_NOW off until the root cause can be identified and fixed.
PR: 233333 Sponsored
libc: forcibly disable BIND_NOW
Building libc WITH_BIND_NOW results in segfault at process start. For now force BIND_NOW off until the root cause can be identified and fixed.
PR: 233333 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
2417a95e |
| 24-Sep-2018 |
Ed Maste <[email protected]> |
Move libc linker ifunc test to build target only
Targets like 'cleandir' must not depend on toolchain capabilities.
Reported by: delphij, Shawn Webb Approved by: re (kib) Sponsored by: The FreeBSD
Move libc linker ifunc test to build target only
Targets like 'cleandir' must not depend on toolchain capabilities.
Reported by: delphij, Shawn Webb Approved by: re (kib) Sponsored by: The FreeBSD Foundation
show more ...
|
| #
35d1666c |
| 21-Sep-2018 |
Ed Maste <[email protected]> |
libc: require ifunc-capable linker for amd64/i386
We expect to introduce optimized libc routines in the near future, which requires use of a linker that supports ifuncs.
Approved by: re (gjb, kib)
libc: require ifunc-capable linker for amd64/i386
We expect to introduce optimized libc routines in the near future, which requires use of a linker that supports ifuncs.
Approved by: re (gjb, kib) Sponsored by: The FreeBSD Foundation
show more ...
|
| #
41b9df16 |
| 03-Jul-2018 |
John Baldwin <[email protected]> |
Strip __RCSID() and __SCCSID() strings by default when building libc.
This is in preparation for changes to update the various ID strings in libc's source. CSRG ID strings will use __SCCSID() and t
Strip __RCSID() and __SCCSID() strings by default when building libc.
This is in preparation for changes to update the various ID strings in libc's source. CSRG ID strings will use __SCCSID() and there are some existing uses of __RCSID() for NetBSD ID strings already. These are generally under either an explicit #if 0 or an #ifdef LIBC_SCCS so are off by default and this change preserves that existing behavior.
Differential Revision: https://reviews.freebsd.org/D15830
show more ...
|
|
Revision tags: release/11.2.0 |
|
| #
6c100026 |
| 09-May-2018 |
Konstantin Belousov <[email protected]> |
Now that a special no-SSP libc is used for rtld, allow -fstack-protector-all for normal libc builds.
Submitted by: Luis Pires Reviewed by: brooks Differential revision: https://reviews.freebsd.org/D
Now that a special no-SSP libc is used for rtld, allow -fstack-protector-all for normal libc builds.
Submitted by: Luis Pires Reviewed by: brooks Differential revision: https://reviews.freebsd.org/D15340
show more ...
|
| #
db08bfce |
| 09-May-2018 |
Konstantin Belousov <[email protected]> |
Created static libc PIC/no-SSP library to be used by rtld.
Rtld is not compatible with SSP, and since we link libc_pic.a to rtld to have the basic support like memory and string copy functions, we h
Created static libc PIC/no-SSP library to be used by rtld.
Rtld is not compatible with SSP, and since we link libc_pic.a to rtld to have the basic support like memory and string copy functions, we have to both carefully limit libc use, and to provide the ssp support shims. This change makes the libc use in rtld more straighforward but still limited, and allows to remove the shims, to be done in the next commit.
Submitted by: Luis Pires Reviewed by: bdrewery, brooks Differential revision: https://reviews.freebsd.org/D15283
show more ...
|
| #
0b972ac9 |
| 05-Oct-2017 |
Warner Losh <[email protected]> |
Support armv7 builds for userland
Make armv7 as a new MACHINE_ARCH.
Copy all the places we do armv6 and add armv7 as basically an alias. clang appears to generate code for armv7 by default. armv7 h
Support armv7 builds for userland
Make armv7 as a new MACHINE_ARCH.
Copy all the places we do armv6 and add armv7 as basically an alias. clang appears to generate code for armv7 by default. armv7 hard float isn't supported by the the in-tree gcc, so it hasn't been updated to have a new default.
Support armv7 as a new valid MACHINE_ARCH (and by extension TARGET_ARCH).
Add armv7 to the universe build.
Differential Revision: https://reviews.freebsd.org/D12010
show more ...
|
|
Revision tags: release/10.4.0 |
|
| #
d511b20a |
| 02-Aug-2017 |
Enji Cooper <[email protected]> |
Add HAS_TESTS to all Makefiles that are currently using the `SUBDIR.${MK_TESTS}+= tests` idiom.
This is a follow up to r321912.
|
| #
4b330699 |
| 02-Aug-2017 |
Enji Cooper <[email protected]> |
Convert traditional ${MK_TESTS} conditional idiom for including test directories to SUBDIR.${MK_TESTS} idiom
This is being done to pave the way for future work (and homogenity) in ^/projects/make-ch
Convert traditional ${MK_TESTS} conditional idiom for including test directories to SUBDIR.${MK_TESTS} idiom
This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox .
No functional change intended.
MFC after: 1 weeks
show more ...
|
|
Revision tags: release/11.1.0 |
|
| #
d0fd0203 |
| 20-Jan-2017 |
Enji Cooper <[email protected]> |
Replace dot-dot relative pathing with SRCTOP-relative paths where possible
This reduces build output, need for recalculating paths, and makes it clearer which paths are relative to what areas in the
Replace dot-dot relative pathing with SRCTOP-relative paths where possible
This reduces build output, need for recalculating paths, and makes it clearer which paths are relative to what areas in the source tree. The change in performance over a locally mounted UFS filesystem was negligible in my testing, but this may more positively impact other filesystems like NFS.
LIBC_SRCTOP was left alone so Juniper (and other users) can continue to manipulate lib/libc/Makefile (and other Makefile.inc's under lib/libc) as include Makefiles with custom options.
Discussed with: marcel, sjg MFC after: 1 week Reviewed by: emaste Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D9207
show more ...
|
| #
7804dd52 |
| 16-Nov-2016 |
Ruslan Bukin <[email protected]> |
Add full softfloat and hardfloat support for RISC-V.
Hardfloat is now default (use riscv64sf as TARGET_ARCH for softfloat).
Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.
Add full softfloat and hardfloat support for RISC-V.
Hardfloat is now default (use riscv64sf as TARGET_ARCH for softfloat).
Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D8529
show more ...
|
| #
5bca2215 |
| 31-Oct-2016 |
Ruslan Bukin <[email protected]> |
Add full softfloat and hardfloat support for MIPS.
This adds new target architectures for hardfloat: mipselhf mipshf mips64elhf mips64hf.
Tested in QEMU only.
Sponsored by: DARPA, AFRL Sponsored b
Add full softfloat and hardfloat support for MIPS.
This adds new target architectures for hardfloat: mipselhf mipshf mips64elhf mips64hf.
Tested in QEMU only.
Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D8376
show more ...
|
| #
32797df5 |
| 12-Oct-2016 |
Ruslan Bukin <[email protected]> |
Add different libc ldscript: the one without libssp -- we don't have it when MK_SSP==no.
This fixes compilation on MIPS.
Reviewed by: imp Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential
Add different libc ldscript: the one without libssp -- we don't have it when MK_SSP==no.
This fixes compilation on MIPS.
Reviewed by: imp Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D8212
show more ...
|