summaryrefslogtreecommitdiff
path: root/gnu/llvm
AgeCommit message (Collapse)Author
2017-10-24kbind(2) for the win: we can always put .got.plt in RELROPhilip Guenther
ok kettenis@ deraadt@
2017-01-14Import LLVM 3.9.1 including clang and lld.Patrick Wildt
2017-10-04Tedu files that got removed in LLVM 5.0.0.Patrick Wildt
2017-10-04Tedu files that got removed in LLVM 5.0.0.Patrick Wildt
2017-10-04Merge LLVM 5.0.0 release.Patrick Wildt
2017-10-04Import LLVM 5.0.0 release including clang, lld and lldb.Patrick Wildt
2017-01-14Import LLVM 3.9.1 including clang and lld.Patrick Wildt
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-09-28make clang include a FILE symbol for .(s|S) filesRobert Nagy
This is mostly needed by syspatch at the moment to be to be able to re-link in the same order as the original libraries were linked with by relying on the readelf(1) and without this .(s|S) assembly files were not getting a file directive. A bug reports has been filed as well: https://bugs.llvm.org/show_bug.cgi?id=34019 ok deraadt@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-08-07Actually enable the kprintf format attribute.Mark Kettenis
ok florian@
2017-08-04Backport https://reviews.llvm.org/D29778. Fixes a bug where clang wasMark Kettenis
optimizing code around an lgamma(3) call a bit too much. Fixes the lib/libm/lgamma regress test. ok patrick@, millert@
2017-08-04remove llvm's .gitignore file; upstream have separate repos for clang, lld,Stuart Henderson
etc but as they're directly in our main tree, so the ignore file causes problems for people using cvs->git conversions. kettenis suggested removing the file rather than just commenting-out the relevant repos, patrick agrees.
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-08-01Use int3 trap padding between functions instead of trapsleds with a leading ↵mortimer
jump. ok deraadt@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-07-29Disable -Waddress-of-packed-member by default.Mark Kettenis
While these warnings have the potential to be useful, there are too manu false positives right now. ok deraadt@
2017-07-29Fix trapsleds on i386mortimer
ok deraadt@
2017-07-28On OpenBSD disable the malloc/calloc/realloc/free/str*dup builtins, sinceTheo de Raadt
they can perform strange transforms and optimizations. Some of those could gain a slight advantage, but would avoid the variety of important runtime checks our malloc(3) code does. In essence, the transforms performed are considered "anti-mitigation". ok kettenis robert, discussions with others
2017-07-27teach clang about our syslog format attributeRobert Nagy
ok deraadt@
2017-07-27push back -pie to the linker if -pie is specified to avoid an unused argumentRobert Nagy
warning ok kettenis@, deraadt@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-06-28if we return nullptr for a "noexec" section, then don't change section.Marc Espie
prevents core dumps :) okay tedu@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-06-27trapsleds for clang, similar to the change on gas side.Theo de Raadt
Also from Todd Mortimer tested by espie
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-06-21For a decade or more, we've patched gcc to make -fno-ident the default.Ted Unangst
clang doesn't seem to have a command line option for the feature, so just hard wire it off. We don't need advertisements in our binaries. ok deraadt
2017-06-06Enable -fwrapv by default with clang to treat signed integer overflowsJonathan Gray
as defined. This is done to prevent dangerous optimisations which could remove security critical overflow checks. Base gcc has -fno-strict-overflow by default, with clang this is identical to -fwrapv. Prompted by naddy@ discovering a hang with a clang compiled i386 kernel that was resolved with -fwrapv. ok kettenis@ pascal@
2017-06-02Synonym -Wno-cpp for -Wno-#warnings. That one is not a headache forMarc Espie
scripting. (got it into upstream, it's just a backport) okay kettenis@, patrick@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-05-29openbsd does not use nonexec stack segment header hints.Ted Unangst
in fact, false is a much better default for UsesNonexecutableStackSection. platforms that require it can reenable, instead, saving the rest of us an unnecessary program header (causes trouble for some special binaries). ok kettenis
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-05-09Enable TLS support but default to the emulatated TLS model. Enable theMark Kettenis
runtime support code libcompiler_rt for this. This code uses functions that live in libpthread, so code that uses TLS support will need to be linked with -lpthread. This should allow more ports to build with base clang. ok espie@
2017-04-16Disable colored diagnostics in LLVM's lld.Patrick Wildt
Requested by deraadt@
2017-03-24Add "supported targets" in lld --help output to be compatible with whatJonathan Gray
libtool generated configure scripts expect. Otherwise they might assume shared libraries aren't supported. From lld svn revisions 298568 and 298571. Discussed with kettenis@
2017-03-24Add "(compatible with GNU linkers)" to the lld version output to avoidJonathan Gray
problems with configure scripts generated with libtool.m4 that would otherwise have to be regenerated with a patched libtool. Among other things this fixes the build of Mesa on arm64 with lld. From lld svn revision 298532. ok kettenis@
2017-03-19Work around a problem where linker-generated symbols are not properlyMark Kettenis
versioned and end up as local symbols despite being explicitly listed as global in the version script. This breaks out brk()/sbrk() implementation. The diff is only a partial solution and unlikely to be accepted as-is upstream. We'll keep it as a local diff until a better solution is found. ok guenther@
2017-01-14Import LLVM 3.9.1 including clang and lld.Patrick Wildt
2017-03-18Add support for -znodlopen.Mark Kettenis
ok patrick@
2017-03-14Merge LLVM 4.0.0 release.Patrick Wildt
2017-03-14Import LLVM 4.0.0 release including clang and lld.Patrick Wildt
2017-03-09Disable colored diagnostics in the clang frontend.Patrick Wildt
Requested by deraadt@, millert@ and some more.
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-02-25Disable loop idiom recognition for _libc_memset and _libc_memcpy. These areMark Kettenis
the internal names we use in libc for memset and memcpy and having the compiler optimize them as calls to memset and memcpy will lead to infinite recursion. This is a temporary solution while guenther@ tries to figure out a better way to force calls from inside libc via identifiers that are of hidden visibility. ok jsg@, patrick@
2017-02-25Fix the types used on aarch64 to match what we have in <sys/types.h>.Mark Kettenis
From Brad Smith.
2017-02-25Make sure the .eh_frame ends with a terminator. This avoids creating aMark Kettenis
zero-sized .eh_frame section, which confuses the strip from our frankenbinutils. With this diff lld seems to be usable as the arm64 system linker. ok patrick@, jsg@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@
2017-01-14Import LLVM 3.9.1 including clang and lld.Patrick Wildt
2017-02-12Disable -Wpointer-sign warnings per defaultStefan Kempf
base gcc does the same. suggested by and ok jsg@
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.Pascal Stumpf
ok hackroom@