aboutsummaryrefslogtreecommitdiff
path: root/targets
Commit message (Collapse)AuthorAgeFilesLines
* Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmpDimitry Andric2020-07-242-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 10.0.1 final (aka llvmorg-10.0.1-0-gef32c611aa2). MFC r359582 (by emaste): lldb: use lua as the default script language In the FreeBSD base system we do not have Python support in lldb, but will have Lua support. Make Lua the default. This needs to be made into a configure-time option; that is being discussed upstream and will appear in a future lldb import. For now carry this change as a tiny patch to our copy of lldb. MFC r359599 (by emaste): lldb: add rule to generate LLDBWrapLua.cpp Building lldb's lua/python bindings requires swig, but we do not want to include it in the FreeBSD base system (as a build tool) because it has non-trivial dependencies. As a workaround, add a make rule to generate LLDBWrapLua.cpp, and we will commit the generated file. Requires the swig30 package. Reviewed by: brooks Discussed with: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24265 MFC r359600 (by emaste): lldb: commit generated LLDBWrapLua.cpp MFC r359606 (by emaste): lldb: build and enable lua script bindings Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24266 MFC r360697: In r358396 I merged llvm upstream commit 2e24219d3, which fixed "error: unsupported relocation on symbol" when assembling arm 'adr' pseudo instructions. However, the upstream commit did not take big-endian arm into account. Applying the same changes to the big-endian handling is straightforward, thanks to Andrew Turner and Peter Smith for the hint. This will also be submitted upstream. MFC r360702: Merge commit 4ca2cad94 from llvm git (by Justin Hibbits): [PowerPC] Add clang -msvr4-struct-return for 32-bit ELF Summary: Change the default ABI to be compatible with GCC. For 32-bit ELF targets other than Linux, Clang now returns small structs in registers r3/r4. This affects FreeBSD, NetBSD, OpenBSD. There is no change for 32-bit Linux, where Clang continues to return all structs in memory. Add clang options -maix-struct-return (to return structs in memory) and -msvr4-struct-return (to return structs in registers) to be compatible with gcc. These options are only for PPC32; reject them on PPC64 and other targets. The options are like -fpcc-struct-return and -freg-struct-return for X86_32, and use similar code. To actually return a struct in registers, coerce it to an integer of the same size. LLVM may optimize the code to remove unnecessary accesses to memory, and will return i32 in r3 or i64 in r3:r4. Fixes PR#40736 Patch by George Koehler! Reviewed By: jhibbits, nemanjai Differential Revision: https://reviews.llvm.org/D73290 Requested by: jhibbits MFC r361410: Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp llvmorg-10.0.1-rc1-0-gf79cd71e145 (aka 10.0.1 rc1). MFC r362235 (by kp): llvm: Default to -mno-relax on RISC-V Compiling on a RISC-V system fails with 'relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax'. Our default linker (ld.lld) doesn't support relaxation, so default to no-relax so we don't generate object files the linker can't handle. Reviewed by: mhorne Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D25210 MFC r362445: Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp llvmorg-10.0.0-97-g6f71678ecd2 (not quite 10.0.1 rc2, as more fixes are still pending). MFC r362587 (by cem): Add WITH_CLANG_FORMAT option clang-format is enabled conditional on either WITH_CLANG_EXTRAS or WITH_CLANG_FORMAT. Some sources in libclang are build conditional on either rule, and obviously the clang-format binary itself depends on the rule. clang-format could still use a manual page. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D25427 MFC r362609: Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp llvmorg-10.0.0-129-gd24d5c8e308. Getting closer to 10.0.1-rc2. MFC r362679: Regenerate ReStructuredText based manpages for llvm-project tools: * bugpoint.1 * clang.1 * llc.1 * lldb.1 * lli.1 * llvm-ar.1 * llvm-as.1 * llvm-bcanalyzer.1 * llvm-cov.1 * llvm-diff.1 * llvm-dis.1 * llvm-dwarfdump.1 * llvm-extract.1 * llvm-link.1 * llvm-mca.1 * llvm-nm.1 * llvm-pdbutil.1 * llvm-profdata.1 * llvm-symbolizer.1 * llvm-tblgen.1 * opt.1 Add newly generated manpages for: * llvm-addr2line.1 (this is an alias of llvm-symbolizer) * llvm-cxxfilt.1 * llvm-objcopy.1 * llvm-ranlib.1 (this is an alias of llvm-ar) Note that llvm-objdump.1 is an exception, as upstream has both a plain .1 file, and a .rst variant. These will have to be reconciled upstream first. MFC r362680: Follow-up to r362679, add more entries to OptionalObsoleteFiles.inc MFC r362719: Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp llvmorg-10.0.1-rc2-0-g77d76b71d7d. Also add a few more llvm utilities under WITH_CLANG_EXTRAS: * llvm-dwp, a utility for merging DWARF 5 Split DWARF .dwo files into .dwp (DWARF package files) * llvm-size, a size(1) replacement * llvm-strings, a strings(1) replacement MFC r362733: Remove older llvm-ranlib.1 entry from ObsoleteFiles.inc, as it has gotten its own manpage now, and should be no longer be removed by "make delete-old". MFC r362734: Fix llvm-strings.1 not installing, this was a copy/paste error. MFC r363401: Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 10.0.1 final (aka llvmorg-10.0.1-0-gef32c611aa2). There were no changes since rc2, except in the upstream regression tests, which we do not ship. Relnotes: yes Notes: svn path=/stable/12/; revision=363494
* MFC r356356, r356358, r356422: replace gcclibs' libsspKyle Evans2020-01-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r356356: Provide libssp based on libc For libssp.so, rebuild stack_protector.c with FORTIFY_SOURCE stubs that just abort built into it. For libssp_nonshared.a, steal stack_protector_compat.c from ^/lib/libc/secure and massage it to maintain that __stack_chk_fail_local is a hidden symbol. libssp is now built unconditionally regardless of {WITH,WITHOUT}_SSP in the build environment, and the gcclibs version has been disconnected from the build in favor of this one. r356358: libssp: fix FORTIFY_SOURCE stub declarations The LSB 4.1 that I referenced omitted the varargs, and I failed to catch it. The __vsnprintf_chk error was from just downright misreading the page. GCC6 caught all of these, but I had only tested GCC4.2. r356422: Update libssp paths in various Makefile.depend* files I've been advised that the model that uses these are fairly resilient, but we do know the proper path to use (or remove, in the case of ^/targets/...), so go ahead and update them to reflect that. Notes: svn path=/stable/12/; revision=356775
* Update dirdeps.mk and gendirdeps.mkSimon J. Gerraty2019-12-192-70/+6
| | | | | | | | | | | | | | | | | | | | The env space consumed by exporting all libc's .meta files left little room for command line, so unexport when done. Update dirdeps.mk to latest and add dirdeps-targets.mk to simplify/update targets/Makefile Makefile changes to go with Makefile.depend changes in D22494 MFC of r355618 Reviewed by: bdrewery Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22495 Notes: svn path=/stable/12/; revision=355905
* MFC r351197, r351199:Vladimir Kondratyev2019-09-091-0/+1
| | | | | | | | | | | | | | iwmbtfw: Firmware loader for Intel Wireless 8260 based Bluetooth USB devices Currently supported models are: 8260, 8265, 9560, 9260 and 22161. Firmware files can be installed with comms/iwmbt-firmware port. PR: 237083 Reviewed by: hps, emax Differential Revision: https://reviews.freebsd.org/D21071 Notes: svn path=/stable/12/; revision=352102
* MFC r339489:Yuri Pankov2018-10-271-0/+1
| | | | | | | | | | | | | | | | | Add -b/-l options to localedef(1) to specify output endianness and use it appropriately when building share/ctypedef and share/colldef. This makes the resulting locale data in EL->EB (amd64->powerpc64) cross build and in the native EB build match. Revert the changes done to libc in r308170 as they are no longer needed. PR: 231965 Reviewed by: bapt, emaste, sbruno, 0mp Approved by: re (gjb), kib (mentor) Differential Revision: https://reviews.freebsd.org/D17603 Notes: svn path=/stable/12/; revision=339825
* send-pr: wave goodbyeEitan Adler2018-08-191-1/+0
| | | | | | | | | | Entering into the world of 12.x we no longer need even the placeholder for send-pr. It has not done anything for some time. With Hat: bugmeister Notes: svn path=/head/; revision=338042
* build: remove reference to some dead utilitiesEitan Adler2018-08-191-4/+0
| | | | Notes: svn path=/head/; revision=338041
* Remove special cases for armeb in the build.Warner Losh2018-07-172-3/+2
| | | | | | | Differential Revision: https://reviews.freebsd.org/D16257 Notes: svn path=/head/; revision=336437
* Normalize the g(eom,cache,part,...) build.Brooks Davis2018-06-252-16/+16
| | | | | | | | | | | | | | | | | | | | | | | Rather then combining hardlink creation for the geom(8) binary with shared library build, move libraries to src/lib/geom so they are built and installed normally. Create a common Makefile.classes which is included by both lib/geom/Makefile and sbin/geom/Makefile so the symlink and libraries stay in sync. The relocation of libraries allows libraries to be build for 32-bit compat. This also reduces the number of non-standard builds in the system. This commit is not sufficent to run a 32-bit /sbin/geom on a 64-bit system out of the box as it will look in the wrong place for libraries unless GEOM_LIBRARY_PATH is set appropriatly in the environment. Reviewed by: bdrewery Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15360 Notes: svn path=/head/; revision=335645
* Remove obsolete asf(8)Ed Maste2018-06-151-2/+0
| | | | | | | | | | | | | | kgdb now handles kernel module state internally, so the asf tool serves no purpose. PR: 229046 Reviewed by: brooks Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15827 Notes: svn path=/head/; revision=335222
* Add kernel and userspace code to dump the firmware state of supportedHans Petter Selasky2018-03-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | ConnectX-4/5 devices in mlx5core. The dump is obtained by reading a predefined register map from the non-destructive crspace, accessible by the vendor-specific PCIe capability (VSC). The dump is stored in preallocated kernel memory and managed by the mlx5tool(8), which communicates with the driver using a character device node. The utility allows to store the dump in format <address> <value> into a file, to reset the dump content, and to manually initiate the dump. A call to mlx5_fwdump() should be added at the places where a dump must be fetched automatically. The most likely place is right before a firmware reset request. Submitted by: kib@ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=330653
* Remove libreadline from the source tree, all consumers but gdbBaptiste Daroussin2018-02-061-2/+0
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=328928
* Remove gdbtui, it was already not installed on every archesBaptiste Daroussin2018-02-061-1/+0
| | | | | | | | | | only installed on arm and sparc64. It is the only bits that keeps us having libreadline in base The rest of gdb can be switched to libedit and will be in another commit Notes: svn path=/head/; revision=328925
* Remove a reference to burncdEitan Adler2017-12-291-1/+0
| | | | | | | | I'm unclear of the purpose of this pseudo-target but while its here keep it up to date Notes: svn path=/head/; revision=327365
* Disconnect OFED after r326169 broke all DIRDEPS support for it.Bryan Drewery2017-12-072-37/+0
| | | | Notes: svn path=/head/; revision=326649
* Merge ^/head r325842 through r325998.Hans Petter Selasky2017-11-192-5/+0
|\ | | | | | | Notes: svn path=/projects/bsd_rdma_4_9/; revision=325999
| * Remove xlint(1).Konstantin Belousov2017-11-162-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xlint is currently a fossil. We have much more useful and alive tools to do now what xlint did twenty years ago. I did not cleared some stuff which makes lint operational, in sys/x86/include and sys/sys, but I might do it as followup. The x86/include/ucontext.h and _types.h hacks made to please lint was the main reason for my initial proposal to classify xlint as obsolete and to remove it. Also I do not intend to clear sccs ids. Reviewed by: bapt, brooks, emaste, jhb, pfg Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D13015 Notes: svn path=/head/; revision=325893
* | Merge ^/head r325663 through r325841.Hans Petter Selasky2017-11-154-43/+35
|\| | | | | | | Notes: svn path=/projects/bsd_rdma_4_9/; revision=325842
| * Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-143-35/+35
| | | | | | | | | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325834
| * Chase removal of pkg_* commandsEitan Adler2017-11-111-7/+0
| | | | | | | | Notes: svn path=/head/; revision=325704
| * badsect(8): case remaining elementEitan Adler2017-11-111-1/+0
| | | | | | | | | | | | | | r325452 removed badsect(8) - remove pseudo-target for it Notes: svn path=/head/; revision=325703
* | Remove no longer supported mthca driver.Hans Petter Selasky2017-11-131-1/+0
|/ | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/projects/bsd_rdma_4_9/; revision=325761
* Fix nested MAKEOBJDIRPREFIX breaking various release/buildworld/toolchain ↵Bryan Drewery2017-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | | targets. This problem was caused by r325329 and r325350. For the release(7) targets, some will run mm-mtree.sh which itself runs make with a MAKEOBJDIRPREFIX. The execution of that script leaks OBJROOT, MAKEOBJDIR, and MAKELEVEL=1 in the environment. This causes the mm-mtree makes to not do some basic setup of OBJROOT and only use this special MAKEOBJDIRPREFIX case which fails to empty out MAKEOBJDIRPREFIX for further nested makes, such as a tree walk. If that tree walk sets OBJROOT/OBJTOP such as r325329 is doing, then the wrong OBJDIRs end up being used due to the unemptied MAKEOBJDIRPREFIX being preferred over the proper MAKEOBJDIR. Pointyhat to: bdrewery Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325412
* chase removal of csup in r267863 from 2014..Eitan Adler2017-11-031-1/+0
| | | | Notes: svn path=/head/; revision=325353
* Follow-up r325329: Store all WORLDTMP objects back in the same directory.Bryan Drewery2017-11-031-1/+1
| | | | | | | | | | | | | | | | This still keeps the reduced MAKEOBJDIRPREFIX (SRCTOP) redundancy removed in the OBJDIR, but now keeps all early phase objects in the same directory rather than split per phase. The problem of splitting per phase is that later phases want to link in libraries from earlier phases and base their location on ${OBJTOP}. Pointyhat to: bdrewery Reported by: mjoras, Mark Millard Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325350
* Reduce MAKEOBJDIRPREFIX path spam by specifying a direct objdir to use.Bryan Drewery2017-11-021-3/+3
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325329
* Disconnect libpathconv tests since they require external perl and do not ↵Bryan Drewery2017-10-311-1/+0
| | | | | | | | | | | | work with kyua. This reverts r325192 and is due to libpathconv being connected in r325186. Reported by: ngie Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325247
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Connect new directories.Bryan Drewery2017-10-316-10/+32
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325187
* Properly connect tests.Bryan Drewery2017-10-311-1/+1
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325185
* Provide clang-rt for the clang toolchain as well.Bryan Drewery2017-10-311-0/+22
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325184
* libdevdctl tests require an external port.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325183
* Chase r315223: Disconnect ipftest/ipresendBryan Drewery2017-10-311-2/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325182
* DIRDEPS_BUILD: libgcc now depends on MK_LLVM_LIBUNWINDBryan Drewery2017-10-312-1/+10
| | | | | | | | | | The dependency on gnu/lib/libgcc or lib/libgcc* is determined at 'make dirdeps' time. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325181
* Use more clear SRCTOP here.Bryan Drewery2017-10-311-1/+1
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325177
* clean up remnants of removed GPL softwareEd Maste2017-10-131-23/+0
| | | | | | | | | | | | send-pr r267486 texinfo r276551 ranlib r286332 sdiff r298823 rcs r307351 diff r317209 Notes: svn path=/head/; revision=324605
* Remove additional groff leftovers (r319664)Ed Maste2017-10-131-47/+0
| | | | Notes: svn path=/head/; revision=324604
* Whack procctl(8)Mateusz Guzik2017-09-271-1/+0
| | | | | | | | | | | | | | It was supposed to provide a recovery mechanism against bugs in procfs's long deprecated tracing capabilities. Remove the tool as a prerequisite to axing the kernel side. The tracing facility to use is ptrace(2). MFC after: 2 weeks Notes: svn path=/head/; revision=324042
* Deorbit catman. The tradeoff of disk for performance has long since tippedGordon Tetlow2017-09-131-1/+0
| | | | | | | | | | | | | in favor of just rendering the manpage instead of relying on pre-formatted catpages. Note, this does not impede the ability to use existing catpages, it just removes the utility to generate them. Reviewed by: imp, allanjude Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D12317 Notes: svn path=/head/; revision=323550
* Update targets/pseudo/tests/Makefile.depend after recent additions/subtractionsEnji Cooper2017-07-191-1/+15
| | | | | | | | | | from the FreeBSD test suite. MFC after: 3 days MFC with: r316603 Notes: svn path=/head/; revision=321214
* pfctl parser testsKristof Provost2017-07-151-0/+1
| | | | | | | | | | | | | | | | | | | | Copy the most important test cases from OpenBSD's corresponding src/regress/sbin/pfctl, those that run pfctl on a test input file and check correctness of its output. We have also added some new tests using the same format. The tests consist of a collection of input files (pf*.in) and corresponding output files (pf*.ok). We run pfctl -nv on the input files and check that the output matches the output files. If any discrepancy is discovered during future development in the source tree, we know that a regression bug has been introduced into the tree. Submitted by: paggas Sponsored by: Google, Inc (GSoC 2017) Differential Revision: https://reviews.freebsd.org/D11322 Notes: svn path=/head/; revision=321030
* DIRDEPS_BUILD: Connect more libraries.Bryan Drewery2017-07-111-2/+27
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320884
* Follow-up r318881: Disconnect groff documents.Bryan Drewery2017-07-101-69/+0
| | | | Notes: svn path=/head/; revision=320881
* buildworld: Pass which world phase the build is in down to submakes.Bryan Drewery2017-06-201-0/+1
| | | | | | | | | | | | This is useful for having directories behave differently depending on the phase - such as enabling SUBDIR_PARALLEL or disabling redundant building of library directories already done by earlier 'make _libraries'. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320177
* Enable llvm-objdump by default per r310775Bryan Drewery2017-05-161-1/+1
| | | | Notes: svn path=/head/; revision=318334
* DIRDEPS_BUILD: Connect new directories.Bryan Drewery2017-05-093-0/+19
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317999
* Remove MK_MANDOCDB option missed in r315057Bryan Drewery2017-05-081-5/+0
| | | | Notes: svn path=/head/; revision=317979
* META_MODE: add additional reachover relative paths to DIRDEPS_BUILDEnji Cooper2017-04-071-329/+347
| | | | | | | | | | | These additional entries are being added, after their addition to the source tree. MFC after: 2 months Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=316603
* pwait: Add a -t flag to specify a timeout before exiting, and tests.Bryan Drewery2017-03-071-0/+1
| | | | | | | | | | | The exit status will be 124, as the timeout(1) utility uses. Reviewed by: jilles MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D9697 Notes: svn path=/head/; revision=314886
* Add cxgbetool(8) to the base system.Navdeep Parhar2017-03-031-0/+4
| | | | | | | | | | | | | | | Move cxgbetool from tools/tools to usr.sbin. Compile and install it on platforms where cxgbe(4) is built by default. Knobs (WITH_CXGBETOOL and WITHOUT_CXGBETOOL) have been added so that the user can override the default setting. Reviewed by: ngie@, gnn@, bdrewery@ MFC after: 1 month Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D9854 Notes: svn path=/head/; revision=314579