summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
AgeCommit message (Collapse)Author
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-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@
2019-02-13Import perl-5.28.1Andrew Fresh
looking good sthen@, Great! bluhm@
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-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-24Pretty print ELF machine name as "RISC-V"Jeremie Courreges-Anglas
Instead of "<unknown>: f3". ok kettenis@
2021-06-25minimalistic diff to use %ld instead of %d for ptrdiff printingTheo de Raadt
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-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-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-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-04-29regenJonathan Gray
2021-04-29add RISCVJonathan Gray
2021-04-29riscv64 clang support.Dale Rahn
With several fixes from review integrated. ok patrick@
2021-04-28Update clang build infrastructure for LLVM 11.1.0.Patrick Wildt
Heavy lifting by mortimer@, thank you so much!
2021-04-16Add a workaround to avoid wrong code generated by m88k gcc.Kenji Aoyama
NATIVE_TO_UNI is defined as follows in utf8.h: -- #define NATIVE_TO_UNI(ch) ((UV) ((ch) | 0)) -- and UV is 'unsigned long' on m88k. Details are at: https://github.com/Perl/perl5/issues/18655 help and ok afresh1@
2021-03-04Never automatically rewrite perl/dist/Devel-PPPort/t/01_test.tAndrew Fresh
We are never going to update the files that generate this test and the interaction with "cvs up" means we can accidentally hit it when they hange between releases but permissions when building the system prevent us from writing the update and breaks the build. Found by naddy@, krw@, and deraadt@
2019-02-13Import perl-5.28.1Andrew Fresh
looking good sthen@, Great! bluhm@
2021-03-01Apply pre-built unicore patch, remove excess files - perl-5.32.1Andrew Fresh
OK sthen@
2021-03-01Apply local patches, remove excess files - perl-5.32.1Andrew Fresh
OK sthen@
2021-03-01Fix merge issues, remove excess files - match perl-5.32.1 distAndrew Fresh
OK sthen@
2021-03-01Import perl-5.32.1Andrew Fresh
OK sthen@
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
2008-09-29import perl 5.10.0 from CPANTodd C. Miller
2002-10-27stock perl 5.8.0 from CPANTodd C. Miller
2021-02-20Recommit upstream alignment fix plus libperl version bumpAndrew Fresh
This reapplies commit e0lLUzj1XNW7pJMh and moves libperl to 21.0 The ABI change appears to be fine after XS modules are rebuilt. OK sthen@
2021-02-16Revery previous hash alignment fixAndrew Fresh
Unintentionally changes ABI and breaks perl ports
2021-02-16Backport upstream perl 64bit hash alignment fixesAndrew Fresh
Different flags triggering new compiler optimizations means that luck has run out on this working by chance with the strict alignment of octeon. Upstream issue: https://github.com/Perl/perl5/issues/18555 This is a combination of three commits from upstream. https://github.com/Perl/perl5/commit/d18575f18c6ee61ce80492e82cae7361358d570a https://github.com/Perl/perl5/commit/6027b190154088fbbcbde08a80c49531e4e4c012 https://github.com/Perl/perl5/commit/f43079cb514e3d0be0036424695438ae3fb58451 works on all arch deraadt@
2021-02-14Shuffle how lldb register contexts are built.mortimer
Instead of using #if defined(__arch__) to include / exclude the entire contents of the NativeRegisterContext implementations, use a single NativeRegisterContextOpenBSD_arch which includes the right arch specific register context, and provides a dummy implementation for unsupported architectures. This allows building lldb on architectures which do not have a register context implementation so it can be used as a remote client. ok patrick@
2021-02-11When clang was changed to -fcommon, perl's P_hash_{seed,state} variablesTheo de Raadt
moved into BSS in the .o, with padding rules following the types -- they are both char[]. Since P_hash_seed is (system-dependent) not a multiple of 8, P_hash_state gets layed out misaligned, which sucks because the hash functions demand 64-bit alignment for both variables. There is the possibility of using misalignment macros, but this is not cheap. Could also use kernel-trap fault repair, but the performance would really suck for something so crucial. The correct fix would be for upstream to declare these types as uint64[], we have requested that in https://github.com/Perl/perl5/issues/18555 In the meantime, carry a diff to roundup P_hash_seed to 64-bit alignment so that P_hash_state will land aligned. ok afresh1
2021-02-10only amd64 & arm64 lldb work at the momentTheo de Raadt
2021-02-09Build and install lldb.Patrick Wildt
Discussed with deraadt@
2021-01-28Extern dwarf2_loc_mark_labels. Fixes compiation with -fno-common.mortimer
ok deraadt@
2021-01-28Explicitly enable -fcommon, rather than untangle common symbols.mortimer
ok deraadt@
2020-12-02Fix a bug that GDB could not show the symbols of the core dump it wasasou
generated with the static linked ELF file. ok mpi@
2020-12-01Implement Loongson 2F BTB bug workaround in clangVisa Hankala
This adapts the -mfix-loongson2f-btb workaround from as(1) to LLVM/clang. Because LLVM emits machine code directly without using assembly as intermediary form, the workaround has to be applied in the compiler backend in addition to the integrated assembler. Discussed with miod@ OK mortimer@
2020-11-10Sort list of archs in alphabetical order.Patrick Wildt
From Brad ok mortimer@