| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
Discussed with deraadt@
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
From Brad
ok mortimer@
|
|
|
|
| |
Fixes build on powerpc
|
|
|
|
| |
ok deraadt@ kettenis@
|
| |
|
|
|
|
|
| |
ok hackroom@
tested by plenty
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
Disable PIC/PIE for powerpc64 for now.
|
|
|
|
|
| |
OpenBSD macppc builds these libs with clang. Their ABI is changing
because of clang -msvr4-struct-return
|
|
|
|
| |
"Go for it" kettenis@
|
|
|
|
|
|
|
| |
AsmParsers.def AsmPrinters.def and Disassemblers.def.
Required so that LLVM headers will have prototypes for
LLVMInitializeAMDGPUAsmPrinter() and LLVMInitializeAMDGPUAsmParser().
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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')
|
|
|
|
| |
OK 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@
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
| |
no functional change intended;
OK patrick@
|
|
|
|
|
| |
Patch clang.rst such that "gmake -f Makefile.sphinx man" keeps working.
Using input from jsg@; OK patrick@; "no worries" deraadt@
|
|
|
|
|
|
|
|
|
| |
maximum reachability of the PowerPC branch instructions.
Also override NOPIE_FLAGS to avoid building code with -fno-pie as doing so
is incompatible with secure-plt when using clang as the compiler.
ok visa@, guenther@
|
|
|
|
|
|
| |
static-linked against private copy, or dynamic tools against the *.so,
or ports use independent componented versions. Saves ~85MB in /usr.
ok jsg
|
|
|
|
|
| |
ld --start-group --end-group block. bfd ld seems to need this where
lld doesn't.
|
|
|
|
|
|
|
|
|
| |
build so external users of Support/TargetSelect.h will work correctly.
Previously these were defined via -D in CPPFLAGS.
Fixes llvmpipe erroring out due to no targets being registered.
ok patrick@
|
|
|
|
|
|
|
| |
making sure LLVM_ARCH is set before including architecture-specific
Makefiles.
ok deraadt@
|
|
|
|
|
| |
Generated with gmake and py-sphinx installed via
cd /usr/src/gnu/llvm/docs && gmake -f Makefile.sphinx man
|
|
|
|
|
|
| |
This is required to build the radeonsi Mesa driver.
ok patrick@
|
| |
|
|
|
|
|
|
| |
A build time dependency on python is avoided by generating the arch
specific list of library components in advance. A 'reconf' target
is included to regenerate them. Approach discussed with patrick@
|
|
|
|
|
|
|
|
| |
libLLVM from a single directory avoid reused filenames by symlinking
duplicated names with a prefix of the component library name so object
file names will be unique.
symlink approach suggested by deraadt@ ok patrick@
|
|
|
|
|
|
| |
matches the result of building with cmake
ok patrick@
|
|
|
|
| |
ok patrick@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
causes problems in the following files which use PIC as a variable name.
Undefine PIC in llvm-config.h to minimise the diff to upstream LLVM.
include/llvm/MC/MCObjectFileInfo.h
lib/MC/MCObjectFileInfo.cpp
lib/Transforms/Scalar/LICM.cpp
lib/Transforms/Utils/PredicateInfo.cpp
These are the files that would be built as part of a shared libLLVM.
There are other files with PIC variable names in clang code.
#undef PIC approach suggested by kettenis@
|
|
|
|
| |
From Brad
|
| |
|
|
|
|
| |
ok patrick@
|
| |
|
| |
|
| |
|
|
|
|
| |
ok deraadt millert
|
|
|
|
| |
tweaking the protection flags. ok phessler@ deraadt@
|
|
|
|
| |
with naddy, ok guenther mortimer
|
|
|
|
|
| |
to regain build performance.
OK deraadt@ guenther@ kettenis@
|
| |
|
|
|
|
|
|
| |
works, but actually running stuff probably won't.
ok kettenis@
|
|
|
|
| |
ok deraadt@
|