|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0 |
|
| #
6592a716 |
| 16-Sep-2019 |
Andrew Turner <[email protected]> |
MFC r339738, r339744, r339770, r339773, r339864-r339866, r339907-r339908, r339912-r339913, r339916, r339954, r340213, r340395, r340840, r340910-r340911, r341424, r342773, r342974, r351027, r352073:
MFC r339738, r339744, r339770, r339773, r339864-r339866, r339907-r339908, r339912-r339913, r339916, r339954, r340213, r340395, r340840, r340910-r340911, r341424, r342773, r342974, r351027, r352073:
MFC the BSD crtbegin to stable/12 but keep it disabled.
r339738: Implement a BSD licensed crtbegin/crtend
These are needed for .ctors/.dtors and .jcr handling. The former needs all the function pointers to be called in the correct order from the .init/.fini section. The latter just needs to call a gcj specific function if it exists with a pointer to the start of the .jcr section.
This is currently disabled until __dso_handle support is added.
Reviewed by: emaste Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17587
r339744: Add a missing include for src.opts.mk. Without it MK_TESTS isn't defined.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339770: Drop the csu tests WARNS to 5 to fix the powerpc64 build.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339773: Add __dso_handle to the BSD crtbegin. This is used to identify shared objects.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339864: Check __dso_handle is NULL in non-DSO objects. It should only be non-NULL when accessed from a shared object.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339865: Include the csu test directories in BSD.tests.dist
MFC with: r339738 Sponsored by: DARPA, AFRL
r339866: Make the .ctors, .dtors, and .jcr markers as static. They shouldn't be accessible from out of the files they are defined in.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339907: The jcr argument to _Jv_RegisterClasses is used, stop marking it otherwise.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339908: Run the csu tests on a DSO. This builds the tests into a shared library, then runs these from the base test programs. With this we can check crtbeginS.o and crtendS.o are working as expected.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339912: Fix the location of the static keyword.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339913: Disable the .preinit_array test in DSOs, ld.bfd fails to link objects with the section.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339916: Build the csu tests on all architectures.
The tests haven't been run them, but this is enough to build them so I can get feedback on if the various crt.h headers are correct.
MFC with: r339738 Sponsored by: DARPA, AFRL
r339954: Add __used to __CTOR_LIST__ and __DTOR_LIST__
Enabling BSD_CRTBEGIN on amd64 resulted in error: unused variable '__CTOR_LIST__'.
__CTOR_LIST__ is indeed unused in crtbegin.c; it marks the beginning of the .ctors array and is used in crtend.c. Annotate __DTOR_LIST__ as well for consistency.
Discussed with: andrew MFC with: r339738 Sponsored by: The FreeBSD Foundation
r340213: Add the (untested) mips and sparc64 .init call sequences.
The BSD crtbegin/crtend code now builds on all architectures, however further work is needed to check if it works correctly.
MFC with: r339738 Sponsored by: DARPA, AFRL
r340395: Run __cxa_finalize in shared objects in the destructor path.
When we have .dtors call them before .dtor handling, otherwise call from a destructor.
PR: 233056 MFC with: r339738 Sponsored by: DARPA, AFRL
r340840: Mark the function called by the MIPS .init/.fini sequence with .local.
As with r328939 we need to mark local symbols as such. Without this the assembly parser treats the symbols as global and created relocations against these private symbols.
MFC with: r339738 Sponsored by: DARPA, AFRL
r340910: Add the missing 0 at the end of the .jcr section.
Without this the dynamic library test was failing as it was calling _Jv_RegisterClasses multiple times.
r340911: Re-enable the dynamiclib tests. These should be fixed by r340910.
r341424: Disable the BSD CRT code on powerpc and sparc64, they need extra crt*.o files that haven't been implemented.
Reported by: sbruno MFC with: r339738 Sponsored by: DARPA, AFRL
r342773: Add explicit csu test dependency
lib/csu/tests/dynamiclib requires libh_csu.so be built first. I'm not sure this is the most correct/best way to address this but it solves the issue in my testing.
PR: 233734 Sponsored by: The FreeBSD Foundation
r342974: Create crtsavres.o for powerpc builds
Summary: GCC expects to link in a crtsavres.o on powerpc platforms. On powerpc64 this is an empty file, but on powerpc and powerpcspe this does contain some save/restore functions, which may not actually be necessary for newer modern GCC and clang. This appeases the in-tree gcc, though, and is needed in order to switch to the BSD CRTRBEGIN.
PR: 233751 Reviewed By: andrew Differential Revision: https://reviews.freebsd.org/D18826
r351027: Enable BSD_CRTBEGIN on powerpc
In r342974 jhibbits added support to build crtsavres.o. This was the blocker for BSD_CRTBEGIN to be enabled there. As such enable this option again.
Reviewed by: jhibbits Sponsored by: DARPA, AFRL
r352073: csu: Add the riscv .init call sequence
Reviewed by: br Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D21537
show more ...
|
|
Revision tags: release/11.3.0 |
|
| #
bdc0c74b |
| 17-Apr-2019 |
Dimitry Andric <[email protected]> |
After r346168, also merge build infrastructure for LLVM libomp.
MFC r345235:
Add lib/libomp, with a Makefile, and generated configuration headers. Not connected to the main build yet, as there is s
After r346168, also merge build infrastructure for LLVM libomp.
MFC r345235:
Add lib/libomp, with a Makefile, and generated configuration headers. Not connected to the main build yet, as there is still the issue of the GNU omp.h header conflicting with the LLVM one. (That is, if MK_GCC is enabled.)
PR: 236062
MFC r345236:
Connect lib/libomp to the build.
* Set MK_OPENMP to yes by default only on amd64, for now. * Bump __FreeBSD_version to signal this addition. * Ensure gcc's conflicting omp.h is not installed if MK_OPENMP is yes. * Update OptionalObsoleteFiles.inc to cope with the conflicting omp.h. * Regenerate src.conf(5) with new WITH/WITHOUT fragments.
Relnotes: yes PR: 236062
MFC r345242:
Explicitly link libomp.so against -lpthread, as it depends on pthread functionality. This should make example OpenMP programs work out of the box.
Reported by: jbeich PR: 236062, 236581
MFC r345278:
Also explicitly link libomp.so against -lm, as it transitively depends on scalbn and a few other math functions, via libcompiler-rt. This should allow OpenMP programs to link with BFD linkers too.
Reported by: jbeich PR: 236062, 236581
MFC r345282:
Remove --as-needed from the linker flags for libomp.so, as these actually prevent the transitive dependency on libm.
Reported by: jbeich PR: 236062, 236581
MFC r345291:
Turn on MK_OPENMP for i386 by default, now that it can build.
Noticed by: jbeich PR: 236062, 236582
show more ...
|
|
Revision tags: release/12.0.0, release/11.2.0 |
|
| #
8134347f |
| 06-Feb-2018 |
Baptiste Daroussin <[email protected]> |
Remove libreadline from the source tree, all consumers but gdb has been switched to libedit long ago, libreadline was built as an internallib for a while and kept only for gdbtui which was broken usi
Remove libreadline from the source tree, all consumers but gdb has been switched to libedit long ago, libreadline was built as an internallib for a while and kept only for gdbtui which was broken using libreadline.
Since gdb has been mostly deorbitted in all arches, gdbtui was only installed on arm and sparc64, given it has been removed, gdb has been switched to use libedit, no consumers are left for libreadline. Thus this removal
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
af8612c1 |
| 20-Apr-2017 |
Baptiste Daroussin <[email protected]> |
GNU diff is done and GNU diff3 is not using libgnuregex, so no need to condition the build of libgnuregex anymore on WITHOUT_GNU_DIFF
|
| #
fd1444e4 |
| 20-Apr-2017 |
Baptiste Daroussin <[email protected]> |
Only build libreadline for gdb, binutils actually does not need it
|
| #
c7fbd772 |
| 04-Nov-2016 |
Ed Maste <[email protected]> |
Connect new LLVM-based libgcc_eh & libgcc_s to the build
Compiler-rt and LLVM's libunwind provide a suitable replacement for libgcc.a, libgcc_eh.a, and libgcc_s.so.
Remove the now-unused LLVM_LIBUN
Connect new LLVM-based libgcc_eh & libgcc_s to the build
Compiler-rt and LLVM's libunwind provide a suitable replacement for libgcc.a, libgcc_eh.a, and libgcc_s.so.
Remove the now-unused LLVM_LIBUNWIND block from gnu/lib/libgcc.
PR: 213480 [exp-run] Reviewed by: brooks, ed Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8189
show more ...
|
| #
2abd4864 |
| 20-Oct-2016 |
Ed Maste <[email protected]> |
Correct typo in r307679: the variable is MK_GNU_GREP_COMPAT
|
| #
d1a69033 |
| 20-Oct-2016 |
Ed Maste <[email protected]> |
Build libgnuregex only if necessary for other components
Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D8298
|
| #
dc8b6297 |
| 19-Oct-2016 |
Ed Maste <[email protected]> |
Put each SUBDIR on a separate line for ease of maintenance
Additional patches to this file are in progress, and having each SUBDIR entry on a separate line makes it easier to change the order in whi
Put each SUBDIR on a separate line for ease of maintenance
Additional patches to this file are in progress, and having each SUBDIR entry on a separate line makes it easier to change the order in which the patches are reviewed, tested, and applied.
show more ...
|
| #
016e7731 |
| 19-Oct-2016 |
Ed Maste <[email protected]> |
Switch gnu/lib/Makefile to SUBDIR.${MK_*} optional subdir style
Compound conditions are left unchanged
|
| #
b31f8596 |
| 03-Oct-2016 |
Ed Maste <[email protected]> |
Don't build libdialog if WITHOUT_DIALOG is set
X-MFC-With: r306375
|
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0 |
|
| #
aa92269e |
| 15-Oct-2015 |
Bryan Drewery <[email protected]> |
Add more SUBDIR_PARALLEL.
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
|
Revision tags: release/10.2.0 |
|
| #
cab0e8ff |
| 19-Jul-2015 |
Marius Strobl <[email protected]> |
- Record dependencies of gdb/gdbtui/kgdb on binutils/lib{bfd,iberty,opcodes}, fixing parallel builds. - Don't build gdb/gdbtui/kgdb or libreadline when MK_BINUTILS is "no" for obvious reasons.
M
- Record dependencies of gdb/gdbtui/kgdb on binutils/lib{bfd,iberty,opcodes}, fixing parallel builds. - Don't build gdb/gdbtui/kgdb or libreadline when MK_BINUTILS is "no" for obvious reasons.
MFC after: 3 days
show more ...
|
| #
781eb744 |
| 25-May-2015 |
Baptiste Daroussin <[email protected]> |
ntp is now again libreadline free, so only build libreadline for gdb
|
| #
6e23c23b |
| 25-May-2015 |
Mark Murray <[email protected]> |
Unbreak build where WANT_GDB == "no', as libreadline is also used by ntpdc.
|
| #
40f51e75 |
| 18-May-2015 |
Baptiste Daroussin <[email protected]> |
Only build libreadline if gdb is going to be built
gdb is the only consumer of libreadline which is an INTERNALLIB
|
| #
d485dbc7 |
| 18-May-2015 |
Ed Maste <[email protected]> |
Build libgcov only if we're building base system GCC
Clang uses compiler-rt for the code coverage runtime, and ports GCC provides its own libgcov.
PR: 200203 (exp-run) Sponsored by: The FreeBSD Fo
Build libgcov only if we're building base system GCC
Clang uses compiler-rt for the code coverage runtime, and ports GCC provides its own libgcov.
PR: 200203 (exp-run) Sponsored by: The FreeBSD Foundation
show more ...
|
| #
810d5b34 |
| 15-May-2015 |
Ed Maste <[email protected]> |
Build libgomp only if we're also building base system GCC
Clang's OpenMP support will emit Intel OpenMP API library calls, and will therefore require libiomp (or whatever name is settled on). An up-
Build libgomp only if we're also building base system GCC
Clang's OpenMP support will emit Intel OpenMP API library calls, and will therefore require libiomp (or whatever name is settled on). An up-to-date version of libgomp is included in ports or pkg GCC. Thus, there is no reason to build base libgomp without base system GCC.
PR: 199979 (exp-run) Reviewed by: pfg Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2459
show more ...
|
|
Revision tags: release/10.1.0, release/9.3.0 |
|
| #
9e88096e |
| 10-Jul-2014 |
Warner Losh <[email protected]> |
Make MK_GNUCXX mean "build the libstdc++ and libsupc++ libraries" and nothing more. Force it to be "no" when MK_CXX is "no" to simplify usage. It no longer also means "build g++" since we no longer
Make MK_GNUCXX mean "build the libstdc++ and libsupc++ libraries" and nothing more. Force it to be "no" when MK_CXX is "no" to simplify usage. It no longer also means "build g++" since we no longer have a platform where that's interesting now that pc98 no longer needs clang and gcc, but not g++. pc98 now just uses clang after boot2 changes.
show more ...
|
| #
c6063d0d |
| 06-May-2014 |
Warner Losh <[email protected]> |
Use src.opts.mk in preference to bsd.own.mk except where we need stuff from the latter.
|
| #
38f0b757 |
| 21-Apr-2014 |
Julio Merino <[email protected]> |
Add placeholder Kyuafiles for various top-level hierarchies.
This change adds tests/ directories in the source tree to create various subdirectories in /usr/tests/ and to install placeholder Kyuafil
Add placeholder Kyuafiles for various top-level hierarchies.
This change adds tests/ directories in the source tree to create various subdirectories in /usr/tests/ and to install placeholder Kyuafiles for them.
the relevant hierarchies are: cddl, etc, games, gnu and secure.
The reason for this is to simplify the addition of new test programs for utilities or libraries under any of these directories. Doing so on a case by case basis is unnecessary and is quite an obscure process.
show more ...
|
| #
c77d0c98 |
| 01-Apr-2014 |
Warner Losh <[email protected]> |
It is possible that MK_GNUCXX is "yes" but MK_CXX is "no" so make sure MK_CXX isn't "no" before building these libraries.
|
|
Revision tags: release/10.0.0, release/9.2.0 |
|
| #
52b42bac |
| 06-Sep-2013 |
David Chisnall <[email protected]> |
On platforms where clang is the default compiler, don't build gcc or libstdc++. To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __Fr
On platforms where clang is the default compiler, don't build gcc or libstdc++. To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change.
GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build).
Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains.
Sorry to all of the people who helped who I forgot to mention by name.
Reviewed by: bapt, imp, dim, ...
show more ...
|
|
Revision tags: release/8.4.0, release/9.1.0 |
|
| #
450ea99d |
| 21-May-2012 |
Marcel Moolenaar <[email protected]> |
Don't recurse into libssp when MK_SSP is set to no.
|
|
Revision tags: release/8.3.0 |
|
| #
24d1b19e |
| 24-Nov-2011 |
Max Khon <[email protected]> |
libodialog: disconnect from the build and obsolete.
|