summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
2020-03-06Update perl Term::ReadKey to 2.38Andrew Fresh
ok bluhm@
2020-03-04crank major versions of libLLVM libc++ libc++abigkoehler
OpenBSD macppc builds these libs with clang. Their ABI is changing because of clang -msvr4-struct-return
2020-03-04Switch powerpc clang to -msvr4-struct-return, like gcc.gkoehler
Add these options from gcc to clang: -maix-struct-return # return all structs in memory -msvr4-struct-return # return small structs in r3/r4 ok mortimer@ jca@ deraadt@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2020-01-03avoid build race condition: our make has an "expensive job" heuristicMarc Espie
which means we do stop creating other jobs as soon as we run something looking like "make" to avoid unwanted recursion, so you would never hit that. But in binutils-2.17, the developers changed all/info to do recursive makes with some of the same dependencies. Calling both at the same time becomes an obvious race, and should be fixed for no other reason than correctness. okay guenther@
2019-12-30Apply pre-built unicore patch, remove excess files - perl-5.30.1Andrew Fresh
Timing is good deraadt@, OK sthen@
2019-12-30Apply local patches, remove excess files - perl-5.30.1Andrew Fresh
Timing is good deraadt@, OK sthen@
2019-12-30Fix merge issues, remove excess files - match perl-5.30.1 distAndrew Fresh
Timing is good deraadt@, OK sthen@
2019-12-30Import perl-5.30.1Andrew Fresh
Timing is good deraadt@, OK sthen@
2014-03-24Import perl-5.18.2Andrew Fresh
OK espie@ sthen@ deraadt@
2013-03-25import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myselfStuart Henderson
2010-09-24Perl 5.12.2 from CPANTodd C. Miller
2019-12-23Teach gdb that the trap frame should be used for alltraps_kern_meltdown().YASUOKA Masahiko
ok bluhm kettenis
2019-12-21a few depend:-related thingies that were still in.Marc Espie
okay millert@, tb@
2019-12-21Add arm64 support for lldb.mortimer
"Go for it" kettenis@
2019-12-17not renaming those temp files should be fatalMarc Espie
this got fixed in recent binutils, but it's GPLv3. So do the same thing in a slightly different way okay guenther@
2019-12-06Like Targets.def include AMDGPU lines in generated .def files forJonathan Gray
AsmParsers.def AsmPrinters.def and Disassemblers.def. Required so that LLVM headers will have prototypes for LLVMInitializeAMDGPUAsmPrinter() and LLVMInitializeAMDGPUAsmParser().
2019-11-29Sort relative relocations (and relocations against the same symbol) by offsetPhilip Guenther
to optimize the cache and UVM faulting behavior ok kettenis@
2019-11-27In lldb, use a OpenBSD signal map instead of leveraging the FreeBSD one.mortimer
ok kettenis@
2017-10-04Import LLVM 5.0.0 release including clang, lld and lldb.Patrick Wildt
2019-11-26Revert previous "honour DEBUG", otherwise clang uses -g resulting in hugeStuart Henderson
objects and it running out of memory in the "building shared LLVM library" stage (at least on i386). building standard LLVM library building shared LLVM library (version 1.0) cc -shared -Wl,-soname,libLLVM.so.1.0 -fpic -o libLLVM.so.1.0 `echo AMDGPUAsmParser.so AMDGPUInstPrinter.so AMDGPUAliasAnalysis.so AMDGPUAlwaysInlinePass.so AMDGPUAnnotateKernelFeatures.so AMDGPUAnnotateUniformValues.so AMDGPUArgumentUsageInfo.so [...snip lots of .so...] ThinLTOBitcodeWriter.so WholeProgramDevirt.so | tr ' ' '\n' | sort -R` -Wl,--start-group -Wl,--end-group LLVM ERROR: out of memory cc: error: unable to execute command: Abort trap cc: error: linker command failed due to signal (use -v to see invocation) ar: libLLVM.a: No space left on device *** Error 1 in gnu/usr.bin/clang/libLLVM (<bsd.lib.mk>:193 'libLLVM.a': @ar cqD libLLVM.a `lorder AMDGPUAsmParser.o AMDGPUIn stPrinter.o AMDG...) *** Error 254 (<bsd.lib.mk>:225 'libLLVM.so.1.0')
2019-11-26Add bits to allow lldb to find lldb-server.mortimer
lldb likes to look at argv[0] to figure out where it might find lldb-server, but when we invoke lldb via $PATH this doesn't work, so fill in some helpers to tell it where to look. ok millert@
2019-11-26Do not process 0 size DT_PLTRELSZ sections.mortimer
Fixes an assert when running lldb with DEBUG. ok patrick@
2019-11-25Honour DEBUGkn
OK mortimer
2017-10-04Import LLVM 5.0.0 release including clang, lld and lldb.Patrick Wildt
2019-11-10Cope with missing PT_* operations on some architecturesTheo de Raadt
with mortimer
2019-11-09Move the hashed __retguard_* symbols into individual sections and markPhilip Guenther
them as COMDATs so that the linker can individually discard them, instead of just ignoring duplicate symbols but keep the (duplicate) space. On amd64, this reduces the size of the kernel OPENBSD_RANDOM segment by 82% and the libc OPENBSD_RANDOM segment by 15%. A port that tb@ is working on experienced a 97.3% reduction...which let it actually run. ok mortimer@ deraadt@
2019-11-09Add lldb support for debugging running binaries on amd64.mortimer
Follows a similar model as NetBSD. Much help from patrick, kettenis and guenther. lldb and lldb-server remain not installed by default. ok patrick@
2018-04-06Import LLVM 6.0.1 release including clang, lld and lldb.Patrick Wildt
"where is the kaboom?" deraadt@
2017-10-04Import LLVM 5.0.0 release including clang, lld and lldb.Patrick Wildt
2019-11-08Silence the compiler on 64bits archs where sizeof(void *) != sizeof(int).Martin Pieuchot
ok partrick@, kettenis@
2019-10-25Add retguard for octeon/mips64.mortimer
For this architecture we use separate retguard prologue and epilogue code for static or PIC code. In the PIC case we use some additional code before the retguard epilogue to recover the function start address and the GOT pointer in order to get the per-function random cookie. Much thanks to visa@ for suggestions and advice making it all work. ok deraadt@ visa@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2019-10-21Fix backtrace across signals on amd64Kurt Miller
okay guenther@ kettenis@
2019-09-28Make clang emit the proper path to our libcompiler_rt.a when asked to.Patrick Wildt
Change of behaviour in latest clang upgrade noticed by jsing@ during the Go port update, where --print-libgcc-file-name is being used which prints the compiler-rt path. ok kettenis@
2019-09-01Update clang build infrastructure for LLVM 8.0.1.Patrick Wildt
2019-09-01Merge LLVM 8.0.1 release.Patrick Wildt
Tested in snaps and package builds Tested on amd64 by naddy@ Tested on arm64 by patrick@ Tested on octeon by visa@
2019-09-01Import LLVM 8.0.1 release including clang, lld and lldb.Patrick Wildt
2019-08-12Ensure stack protector slot access is resolved by PEI.mortimer
On arm64, arm, and ppc it is possible that a large stack frame will cause the stack protector slot to be reallocated at the wrong end of the frame. Noticed by tj@. ok patrick@.
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2019-08-11Various fixes to make this compile with clang on powerpc.Mark Kettenis
ok visa@
2019-08-01The GlobalISel IRTranslator pass assumes that it is safe to use themortimer
LOAD_STACK_GUARD pseudo without consulting the value of useLoadStackGuardNode(), and then tries to add the return from getSDagStackGuard() as a parameter without consulting the return from getIRStackGuard() to see if it should do that. This means that the GlobalISel IRTranslator's implementation for Intrinsic::stackprotector is broken for platforms that implement getIRStackGuard() like we do, and this causes a segfault later when the incomplete LOAD_STACK_GUARD pseudo is lowered in the back end. Since GlobalISel is disabled on aarch64 most of the time anyway, add a bit that disables it for OpenBSD/aarch64 all the time. Fixes a crash when building on aarch64 without retguard, with a stack protector and without optimizations, which manifests when building cross-tools. ok patrick@ deraadt@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2019-07-28Address a few issues in the expansion of li.d and li.s:Visa Hankala
- In the N64 mode, properly load the whole immediate value in the destination register even if the lower 32 bits are zero. - Ensure correct alignment of memory operands. - Fix the endianess of memory operands.
2019-07-24Remove extra =back from OpenBSD::Pledge PODAndrew Fresh
From Edgar Pettijohn <edgar () pettijohn-web ! com>
2019-07-14Install OpenBSD::Unveil.3p manpageAndrew Fresh
Reminded by brynet@
2019-07-11Compile clang with -fomit-frame-pointer on mips64. This releases theVisa Hankala
frame pointer for better use and lets the compiler run a little faster. The resulting compiler binary is a half bit smaller too. Note that frame pointer elimination is not applicable everywhere. mips64 has the tooling that allow its use in this case. OK kettenis@
2019-07-10Put OpenBSD::Unveil in perl MANIFESTAndrew Fresh
2019-07-09Add OpenBSD::Unveil, a perl interface to unveil(2)Andrew Fresh
OK brynet@, bluhm@
2019-07-08Fix instruction guard. This prevents the compiler from usingVisa Hankala
the MIPS64 mul instruction on pre-MIPS64 subtargets.