summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
2022-05-12Drop old powerpc flags from the build of clangGeorge Koehler
Drop NOPIE_FLAGS = -fPIE and change CFLAGS on powerpc to be the same as on other arches. ok deraadt@ kettenis@
2022-04-21Our malloc(3) guarantees 16-byte alignment.Mark Kettenis
ok sthen@, tb@
2022-04-12Improve test and clean targetsAndrew Fresh
They failed if there was nothing to clean. The test target now depends on the all target so we have something to run tests against. They still don't like to pass in-tree, but that is a separate issue. Noticed by deraadt@, suggestions and improvements from geunther@ and bluhm@
2022-03-27Fix memory corruption bug in zlibAlexander Bluhm
zlib has a crashing bug. The bug fix has been sitting in the unreleased develop branch for nearly four years. Pull in this fix and a small followup. same fix as in base lib/libz
2022-03-27Revert previous. Use private copy of zlib in Compress::Raw::ZlibAlexander Bluhm
again. The header zlib.h in our base uses z_off_t for fields total_in and total_out in struct z_stream_s. The rest of the world uses uLong there. This leads to an incompatibility when comiled with Perl. The pkg tools fail on i386. debugged by semarie@; discussed with tb@
2022-03-25Build Perl module Compress::Raw::Zlib with zlib from /usr/lib/libz.soAlexander Bluhm
instead of the sources that are packaged with Perl. This allows us to apply security fixes for userland base in one place. Zlib.so is used with dlopen(3) and gets a new library dependency to libz. Before zlib objects from zlib-src were linked statically. OK tb@
2010-09-24Perl 5.12.2 from CPANTodd C. Miller
2022-03-23Do not forget to install ar.1; ok robertTheo de Raadt
2022-03-23use llvm-ranlib where llvm-ar is used so that they are in line with eachRobert Nagy
other
2022-03-10Downgrade RISCV ABI mismatch error to a warningJeremie Courreges-Anglas
This lets lld link code with object files created with ld -b binary, as used by several ports (mupdf, postgresql-pllua, various games). Upstream report with an unfinished diff: https://reviews.llvm.org/D106378 ok kettenis@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2022-03-09Arm is not ready for unwinding yet. Disable unwind info generation for now.Todd Mortimer
ok deraadt@
2022-03-04Put back local patch to avoid regenerating testsAndrew Fresh
This was r1.2 and accidentally lost in the update to Devel::PPPort 3.64.
2022-03-04Report versioned lib.so in cc --print-file-name given short nameGreg Steuck
E.g. `cc --print-file-name libc.so` reports /usr/lib/libc.so.96.1 This is a complement of the major.minor finding logic in DriverUtils. `ld -lc -L/usr/lib` currently find the libraries with this logic. To make things more obviously related the code was extracted into a function which was copied over verbatim. fine with mortimer@ ok patrick@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2022-02-27Enable unwind tables on all clang architectures.Todd Mortimer
Fixes backtraces on i386 (tested by bluhm) and armv7. OK bluhm@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2022-02-27Enable libedit line editingJeremie Courreges-Anglas
Sync our hardcoded config with what cmake detects in ports/devel/llvm. Brought up privately by cheloha@, then by Andrei on tech@, input and ok gnezdo@
2022-02-17binutils-2.17 does not have ld or gas available for the aarch64, powerpc64, orPeter Hessler
riscv64 family of platforms, so we don't try to build there. However we mis-nested the arch check, causing some unintended side effects, most notably installing binutils-2.17's ar(1) which overwrote the intended llvm-ar(1). Fix the if nesting so it only applies where intended. tested on aarch64 by me, powerpc64 by gkoehler@, and riscv64 by jca@ OK miod@ robert@ gkoehler@ jca@
2022-02-17remove some dead/squatted linksJonathan Gray
2022-02-17Regenerate ppport.h of Term::ReadKey using Devel::PPPort 3.64 toAlexander Bluhm
avoid -Wno-compound-token-split-by-macro warnings from clang 13. OK afresh1@
2022-02-16Plug ubsan_minimal into gnu/lib/libclang_rt buildGreg Steuck
ok jca@
2022-02-16Add ifdefs to build ubsan_minimal on OpenBSDGreg Steuck
ok jca@
2020-08-10Import compiler-rt 10.0.1 release.Patrick Wildt
ok kettenis@
2022-02-10Update Devel::PPPort in base from version 3.57 to 3.64. Our clangAlexander Bluhm
13.0.0 produces thousands of -Wcompound-token-split-by-macro warnings wir older ppport.h header files. They are especially frequent in the ports tree. After this update we can use perl -MDevel::PPPort -e'Devel::PPPort::WriteFile' to regenerate the ppport.h files. Then we have a version that is recent enough to build all ports and does not spit out tons of warnings. discussed with espie@ sthen@; OK afresh1@
2019-12-30Import perl-5.30.1Andrew Fresh
Timing is good deraadt@, OK sthen@
2019-02-13Import perl-5.28.1Andrew Fresh
looking good sthen@, Great! bluhm@
2022-01-13add a dummy -t flag to llvm-ranlib to match binutils' ranlib's -t flag whichRobert Nagy
is a no-op; ok millert@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-12-28lld: restore upstream default for --[no-]allow-shlib-undefinedChristian Weisgerber
ok patrick@ kettenis@
2021-12-28lld: do not report undefined weak references in shared librariesChristian Weisgerber
https://github.com/llvm/llvm-project/commit/52bfd2c1ccd86ff813ee6df5a6700690acdd912f This fixes an issue introduced in D101996. A weak reference in a shared library could be incorrectly reported if there is another library that has a strong reference to the same symbol. Differential Revision: https://reviews.llvm.org/D115041 ok patrick@ kettenis@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-12-28Compile out-of-line helpers for atomic operations which can be enabledPatrick Wildt
through -moutline-atomics. These are included by default in this updated version of compiler-rt, we just haven't enabled them yet. Some ports start to make use of that option, so it makes sense to provide these helpers. The helpers would make use of the ARMv8.1 LSE instructions, if we flagged that the running system supports those. As we do not yet have a mechanism to show support for LSE, the code will always fall back to regular atomics. Issue raised by jca@ Tested by phessler@ Input from jsg@ ok kettenis@
2021-12-25Sync DF_1_* flag definitions with llvm 13, including support inPhilip Guenther
readelf -d for displaying them. (lld 13 sets DF_1_PIE on most our binaries) ok jsg@
2021-12-22Avoid GNU printf extension to use 'L' length modifier with a intJonathan Gray
conversion specifier to mean 'll'. Found by an ok deraadt@
2021-12-17Avoid errors about clang13-only options here, to ease transitionJeremie Courreges-Anglas
As pointed out by deraadt@ we can do better than ask people to follow instructions. Note that you still need an up-to-date clang if you update your kernel Makefiles, as those use clang13-only options. Also -Werror doesn't bring much in binutils context. It's an outdated codebase with lots of warts, which frequently breaks due to -Werror during clang updates. "This is the right fix" deraadt@
2021-12-17Disable a few warning flags that were introduced and enabled by defaultPatrick Wildt
with LLVM 13.
2021-12-17Update build infrastructure for LLVM 13.0.0.Patrick Wildt
2021-12-17Merge LLVM 13.0.0.Patrick Wildt
2021-12-17Import LLVM 13.0.0 release.Patrick Wildt
2021-01-02Import libc++ 10.0.1 release.Patrick Wildt
2020-08-10Import compiler-rt 10.0.1 release.Patrick Wildt
ok kettenis@
2020-08-09Import LLVM 10.0.1 including clang, lld and lldb.Patrick Wildt
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-11-24install /usr/bin/llvm-ar as /usr/bin/ar directly without adding anotherRobert Nagy
binary to /usr/bin and do the same with the manpage as well and make sure that we only build llvm-ar on architectures where it is actually enabled discussed with deraadt@
2021-11-23add llvm-ar(1) to the build with its two dependencies libLLVMDlltoolDriverRobert Nagy
and libLLVMLibDriver; switch LLD_ARCHs to llvm-ar(1) by skipping the installation of binutils' ar(1) and linking llvm-ar(1) to ar(1) tested on amd64, i386, arm64 and mips64 ok patrick@, kettenis@
2021-11-12Teach binutils enough about RELR relocations to not break them and forPhilip Guenther
readelf to display them in a way compatible with llvm-readelf, including the --raw-relr debugging option ok kettenis@
2021-11-12backport https://reviews.llvm.org/D107127 to fix shared libraries using emutlsRobert Nagy
Our emulated TLS implementation relies on local state (e.g. for the pthread key), and if we duplicate this state across different shared libraries, accesses to the same TLS variable from different shared libraries will yield different results (see https://github.com/android/ndk/issues/1551 for an example). __emutls_get_address is the only external entry point for emulated TLS, and by making it default visibility and weak, we can rely on the dynamic linker to coalesce multiple copies at runtime and ensure a single unique copy of TLS state. This is a best effort; Also bump the libc++abi minor because now it picks up the __emutls_get_address symbol. ok kettenis@
2021-10-27backport a perl patch to avoid excessive warnings with llvm 13 clangJonathan Gray
originally from Tony Cook in skip using gcc brace groups for STMT_START/END 7169efc77525df70484a824bff4ceebd1fafc760 looks fine millert@ ok afresh1@