summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
2021-10-12Do not extend PT_DYNAMIC segment on mips64Visa Hankala
The IRIX-specific extension of the PT_DYNAMIC segment is not needed by the dynamic linker on OpenBSD/mips64. Disable it so that the .dynamic section stays at the start of the PT_DYNAMIC segment even when .dynstr, .dynsym or .hash precedes .dynamic in the ELF file. This enables Binutils 2.17 tools, such as strip(1), rewrite executables and shared libraries that have been produced by LLD. OK kettenis@
2021-09-28Link libclang_rt.profile to the build.Frederic Cambus
"go for it" kettenis@
2021-09-17Implement __builtin_clear_cache() on riscv64Jeremie Courreges-Anglas
Fixes at least ports/devel/libffi as used by ports/lang/python/2. ok kettenis@
2021-09-15Add build infrastructure for the libclang_rt.profile library.Frederic Cambus
Not linking it to the build yet. "go for it" mortimer@
2021-09-07clang: add a new warning for %n format specifier usage in printf(3) family ↵Sebastien Marie
functions ok deraadt@ different versions tested by jca@ naddy@ sthen@
2021-09-03Allow the compiler driver to link the libclang_rt.profile library.Frederic Cambus
With this change, passing -fprofile-instr-generate -fcoverage-mapping when building programs will attempt linking against libclang_rt.profile.a. Please note that we do not ship the library yet. OK jca@
2021-09-01Add lfence after ret in retpoline thunk.Todd Mortimer
Recommended by AMD white paper Software Techniques for Managing Speculation on AMD Processors (9.17.20) mitigation V2-1. Pointed out by bluhm@. ok bluhm@ kettenis@
2020-08-09Import LLVM 10.0.1 including clang, lld and lldb.Patrick Wildt
2021-09-01llvm: Use Component in OpenBSD::getCompilerRT to find librariesGreg Steuck
Clang uses runtime libraries for some advanced features like sanitizers. Different systems have different preferences about file placement. OpenBSD with this change would use this name for ASan: /usr/lib/clang/11.1.0/lib/libclang_rt.asan.a So far, no libraries are shipped, only their eventual location is chosen. Discussed with deraadt@ and kettenis@, OK mortimer@
2021-08-29Revert: llvm: openbsd driver had one -lcompiler_rt too manyGreg Steuck
Suggested by jca@ that kettenis@ looks at it first.
2021-08-29llvm: openbsd driver had one -lcompiler_rt too manyGreg Steuck
Tested by doing a full system build locally. Will work with brad@ for upstream-ing. OK patrick & mortimer
2021-08-21Switch macppc to ld.lldgkoehler
Add powerpc to LLD_ARCH. Remove -Wl,-relax flag; ld.bfd needed it, but ld.lld can't take this flag. To avoid linker errors on macppc, you need a snapshot where /usr/bin/ld is LLD. ok kettenis@ deraadt@
2021-08-10Fix Encode(3p) loading module from incorrect relative pathAndrew Fresh
This is upstream commit https://github.com/Perl/perl5/commit/c1a937fef07c061600a0078f4cb53fe9c2136bb9 Quoting upstream: Without this fix, Encode::ConfigLocal can be loaded from a path relative to the current directory, because the || operator will evaluate @inc in scalar context, putting an integer as the only value in @inc. Addresses CVE-2021-36770
2021-08-05Remove the TableGen library from libLLVM. It's only needed for the tblgenPatrick Wildt
tools, and it also provides command line options and thus pollutes the name space. This fixes duplicate command line options in llvm-objdump. Discussed with jsg@
2021-08-02Add infrastructure to build llvm-objcopy and llvm-objdump.Patrick Wildt
ok kettenis@ sthen@
2021-07-29Allow relocation R_386_GOTOFF to be used from .debug_info sections. NewerPascal Stumpf
GCC versions will sometimes emit it, and we have stumbled upon it a few times in ports. Upstream commit: https://reviews.llvm.org/D95994 GCC bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98946 ok kettenis@
2021-07-24Pretty print ELF machine name as "RISC-V"Jeremie Courreges-Anglas
Instead of "<unknown>: f3". ok kettenis@
2021-07-11Optimize gadget fixups for MOV instructions.mortimer
Instead of swapping registers around, we can just use the REV version of the same instruction, which has the same effect but encodes differently and does not result in return bytes in the binary. This reduces the number of xchg instructions resulting from gadget fixing. Prompted by ratchov@, with input from millert@ and sthen@. ok sthen@
2021-06-28Fix base-gcc -Wno-error=uninitializedJeremie Courreges-Anglas
base-gcc always errored out when -Werror was passed and -Wuninitialized triggered, even when -Wno-error=uninitialized was passed. Deemed correct by Miod
2021-06-25minimalistic diff to use %ld instead of %d for ptrdiff printingTheo de Raadt
2021-06-25Pull in support from a future clang for __GCC_HAVE_SYNC_COMPARE_AND_SWAP_xTheo de Raadt
defines because we need it now from https://reviews.llvm.org/D91784 ok mlarkin kettenis
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-06-24add some aarch64 bits missed in Makefile.in 1.6Jonathan Gray
ok deraadt@ drahn@
2021-06-24repair missing dependencies against bfd.h for riscv64Theo de Raadt
ok jsg drahn
2021-06-23help the debugger look in ports for external parts like PadWalkerMarc Espie
and Readline. feedback and okay afresh1@
2021-06-21correct riscv64 blocksTheo de Raadt
discussion with espie kettenis jsg
2021-06-11remove netbsd specific LIBRARY section; ok jcaJason McIntyre
2021-06-10Minor mandoc -Tlint fixesJeremie Courreges-Anglas
ok mortimer@
2021-06-10IndentationJeremie Courreges-Anglas
ok mortimer@
2021-06-10No RCS IDs in shlib_version filesJeremie Courreges-Anglas
ok mortimer@
2021-06-09Remove pledgenames() from OpenBSD::Pledge perl moduleAndrew Fresh
Pointed out by deraadt@, this is not what that that incomplete table is for. While the code has been there for several years, I haven't found a use for it, which is good because it would have been wrong. While here, update my name.
2021-06-09Enable libexecinfo.mortimer
With some build plumbing help from jsg@ ok kettenis@ sthen@
2021-06-09Add libexecinfo.mortimer
Based on NetBSD implementation, without the libelf dependency. Architectures which have libunwind use libunwind, and others use a stub implementation that does nothing since __builtin methods are unreliable. Much feedback and help from jca@. ok kettenis@ sthen@
2021-05-19Revert hack to build clang with -static on riscv64.Dale Rahn
This 'requirement' was due to a bug in dtors which has been corrected. reminded by jsg@
2021-05-14On riscv64, dynamically linked clang binary fails with:Dale Rahn
libc++abi: Pure virtual function called! By statically linking clang (and *-tblgen) this problem is worked around at least for now.
2021-05-14Initial enablment of EMULTLS on RiscVDale Rahn
Uncertain if this is 100% correct, however this enables self hosting using clang.
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-05-11Since ld.lld doesn't properly support R_RISCV_RELAX relocations, switch theMark Kettenis
default to -no-relax. ok drahn@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-05-05riscv64 binutils 'support'Dale Rahn
Enable just enough of binutils to be a functional compilation system with llvm doing the heavy lifting. With corrections suggested by reviewers. ok jsg@ kettenis@
2021-05-05Fix backtrace command with kernel core.asou
ok mpi@
2011-04-24Here comes the easter bunnytils 2.17 (the last version released against aMiod Vallat
licence mere mortals can understand the terms of); will be connected to the build on an arch-by-arch basis. Testsuites and generated files have been intentionnaly omitted from this import. Peer pressure and ok from at least drahn@ pirofti@ deraadt@
2021-05-03recognise a small number of riscv relocations in readelfJonathan Gray
ok kettenis@
2021-05-03don't build gdb on riscv64Jonathan Gray
2021-05-01regen llvm man pages from rst withJonathan Gray
cd /usr/src/gnu/llvm/llvm/docs gmake -f Makefile.sphinx man cd /usr/src/gnu/llvm/clang/docs gmake -f Makefile.sphinx man cmake -DLLVM_ENABLE_SPHINX=ON -DLLDB_INCLUDE_TESTS=OFF /usr/src/gnu/llvm/lldb/ make docs-lldb-man
2021-05-01arvm7 -> armv7Jonathan Gray
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2021-04-29regenJonathan Gray
2021-04-29add RISCVJonathan Gray
2021-04-29riscv64 clang support.Dale Rahn
With several fixes from review integrated. ok patrick@