summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Next step in updating llvm/clang build glue: make libclang_rt build.Dimitry Andric2017-12-2314-52/+144
| | | | Notes: svn path=/projects/clang600-import/; revision=327119
* Next step in updating llvm/clang build glue: make lldb build.Dimitry Andric2017-12-222-0/+14
| | | | Notes: svn path=/projects/clang600-import/; revision=327092
* Next step in updating llvm/clang build glue: make lld build.Dimitry Andric2017-12-222-5/+10
| | | | Notes: svn path=/projects/clang600-import/; revision=327083
* Sort source file lists under lib/clang.Dimitry Andric2017-12-222-6/+6
| | | | Notes: svn path=/projects/clang600-import/; revision=327079
* Next step in updating llvm/clang build glue: make the optional llvm andDimitry Andric2017-12-223-0/+8
| | | | | | | clang tools build. Notes: svn path=/projects/clang600-import/; revision=327078
* Next step in updating llvm/clang build glue: make llvm-objdump build.Dimitry Andric2017-12-221-0/+1
| | | | Notes: svn path=/projects/clang600-import/; revision=327077
* Next step in updating llvm/clang build glue: make the full clangDimitry Andric2017-12-221-0/+4
| | | | | | | executable build. Notes: svn path=/projects/clang600-import/; revision=327076
* First step in updating llvm/clang build glue: make only the clangDimitry Andric2017-12-216-18/+75
| | | | | | | executable build. Notes: svn path=/projects/clang600-import/; revision=327069
* Update ObsoleteFiles.inc and OptionalObsoleteFiles.inc.Dimitry Andric2017-12-202-116/+237
| | | | Notes: svn path=/projects/clang600-import/; revision=327046
* Update clang versioned dir in mtree files.Dimitry Andric2017-12-202-2/+2
| | | | Notes: svn path=/projects/clang600-import/; revision=327045
* Update libclang_rt version number.Dimitry Andric2017-12-201-1/+1
| | | | Notes: svn path=/projects/clang600-import/; revision=327044
* Bump FREEBSD_CC_VERSION.Dimitry Andric2017-12-201-1/+1
| | | | Notes: svn path=/projects/clang600-import/; revision=327043
* Add new clang intrinsics headers, and update version number.Dimitry Andric2017-12-201-1/+5
| | | | Notes: svn path=/projects/clang600-import/; revision=327042
* Update generated config headers, and version numbers.Dimitry Andric2017-12-208-23/+55
| | | | Notes: svn path=/projects/clang600-import/; revision=327041
* Merge libc++ trunk r321017 to contrib/libc++.Dimitry Andric2017-12-2064-926/+1634
|\ | | | | | | Notes: svn path=/projects/clang600-import/; revision=327039
| * Vendor import of libc++ trunk r321017:vendor/libc++/libc++-trunk-r321017Dimitry Andric2017-12-18739-7990/+11560
| | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/libcxx/trunk@321017 Notes: svn path=/vendor/libc++/dist/; revision=326945 svn path=/vendor/libc++/libc++-trunk-r321017/; revision=326946; tag=vendor/libc++/libc++-trunk-r321017
* | Merge compiler-rt trunk r321017 to contrib/compiler-rt.Dimitry Andric2017-12-20341-4663/+14618
|\ \ | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327033
| * | Vendor import of compiler-rt trunk r321017:vendor/compiler-rt/compiler-rt-trunk-r321017Dimitry Andric2017-12-18907-6321/+32685
| | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/compiler-rt/trunk@321017 Notes: svn path=/vendor/compiler-rt/dist/; revision=326943 svn path=/vendor/compiler-rt/compiler-rt-trunk-r321017/; revision=326944; tag=vendor/compiler-rt/compiler-rt-trunk-r321017
* | | Merge lldb trunk r321017 to contrib/llvm/tools/lldb.Dimitry Andric2017-12-20374-5387/+10166
|\ \ \ | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327030
| * | | Vendor import of lldb trunk r321017:vendor/lldb/lldb-trunk-r321017Dimitry Andric2017-12-18979-7065/+20235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/lldb/trunk@321017 Notes: svn path=/vendor/lldb/dist/; revision=326949 svn path=/vendor/lldb/lldb-trunk-r321017/; revision=326950; tag=vendor/lldb/lldb-trunk-r321017
* | | | Merge lld trunk r321017 to contrib/llvm/tools/lld.Dimitry Andric2017-12-20154-7323/+10742
|\ \ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327026
| * | | | Vendor import of lld trunk r321017:vendor/lld/lld-trunk-r321017Dimitry Andric2017-12-18815-9347/+35716
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/lld/trunk@321017 Notes: svn path=/vendor/lld/dist/; revision=326947 svn path=/vendor/lld/lld-trunk-r321017/; revision=326948; tag=vendor/lld/lld-trunk-r321017
* | | | | Merge clang trunk r321017 to contrib/llvm/tools/clang.Dimitry Andric2017-12-20729-33828/+63231
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327024
| * | | | | Vendor import of clang trunk r321017:vendor/clang/clang-trunk-r321017Dimitry Andric2017-12-182274-54092/+148649
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/trunk@321017 Notes: svn path=/vendor/clang/dist/; revision=326941 svn path=/vendor/clang/clang-trunk-r321017/; revision=326942; tag=vendor/clang/clang-trunk-r321017
* | | | | | Merge llvm trunk r321017 to contrib/llvm.Dimitry Andric2017-12-202494-108242/+232575
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang600-import/; revision=327023
| * | | | | | Vendor import of llvm trunk r321017:vendor/llvm/llvm-trunk-r321017Dimitry Andric2017-12-189794-313919/+829368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/llvm/trunk@321017 Notes: svn path=/vendor/llvm/dist/; revision=326938 svn path=/vendor/llvm/llvm-trunk-r321017/; revision=326939; tag=vendor/llvm/llvm-trunk-r321017
* | | | | | | Avoid CPU migration in dtrace_gethrtime() on x86.Mark Johnston2017-12-182-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dtrace_gethrtime() may be called outside of probe context, and in particular, from the DTRACEIOC_BUFSNAP handler. Disable interrupts rather than using sched_pin() to help ensure that we don't call any external functions when in probe context. PR: 218452 MFC after: 1 week Notes: svn path=/head/; revision=326935
* | | | | | | Also forgotten in the previous that removed the permanent double mappingBruce Evans2017-12-181-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of low physical memory: Update the comment about leaving the permanent mapping in place. This also improves the wording of the comment. PTD 0 is still left alone because it is fairly important that it was unmapped earlier, and the comment now describes the unmapping of the other low PTDs that the code actually does. Reviewed by: kib Notes: svn path=/head/; revision=326933
* | | | | | | Remove the permanent double mapping of low physical memory and replaceBruce Evans2017-12-183-43/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it by a transient double mapping for the one instruction in ACPI wakeup where it is needed (and for many surrounding instructions in ACPI resume). Invalidate the TLB as soon as convenient after undoing the transient mapping. ACPI resume already has the strict ordering needed for this. This fixes the non-trapping of null pointers and other garbage pointers below NBPDR (except transiently). NBPDR is quite large (4MB, or 2MB for PAE). This fixes spurious traps at the first instruction in VM86 bioscalls. The traps are for transiently missing read permission in the first VM86 page (physical page 0) which was just written to at KERNBASE in the kernel. The mechanism is unknown (it is not simply PG_G). locore uses a similar but larger transient double mapping and needs it for 2 instructions instead of 1. Unmap the first PDE in it after the 2 instructions to detect most garbage pointers while bootstrapping. pmap_bootstrap() finishes the unmapping. Remove the avoidance of the double mapping for a recently fixed special case. ACPI resume could use this avoidance (made non-special) to avoid any problems with the transient double mapping, but no such problems are known. Update comments in locore. Many were for old versions of FreeBSD which tried to map low memory r/o except for special cases, or might have allowed access to low memory via physical offsets. Now all kernel maps are r/w, and removal of of the double map disallows use of physical offsets again. Notes: svn path=/head/; revision=326932
* | | | | | | Fix the undersupported option KERNLOAD, part 2: fix crashes in locoreBruce Evans2017-12-181-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when KERNLOAD is smaller than NBPDR (not the default) and PG_G is enabled (the default if the CPU supports it). This case has relatively minor problems with coherency of the permanent double mapping, but the fix in r167869 to improve coherency creates page tables with 3 different errors so never worked. The permanent double mapping is fundamentally broken and will be removed soon. It fundamentally breaks trapping for null pointers and requires complications to avoid cache coherency bugs. It is currently used for only a single instruction in ACPI resume, Many fixes VM86 and/or ACPI and/or the double map were attempted near r1200000. r167869 attempted to fix cache coherency bugs in an unusual case, but the bugs were unreachable because older errors in page tables caused a crash first. This commit just makes r167869 work as intended. Part 1 of these fixes fixed the other errors, but also stopped mapping the PDE for KERNBASE as a large page, so double mapping of this PDE only causes the same problems as when KERNLOAD is the default. Except for the problem of trapping null pointers, r167869 could be used to fix these problems, but it is inactive in usual cases. The only known other problem is that incoherent permissions for page 0 cause spurious traps in VM86 BIOS calls. Reviewed by: kib Notes: svn path=/head/; revision=326931
* | | | | | | newsyslog: Fix issues after r326616Baptiste Daroussin2017-12-181-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building the command to execute for compression, newsyslog was modifying the generic arguments array instead of its own copy. Meaning on the second file to compress with the same arguments, the command line was not the one expected. Fix it by creating one copy of the arguments per execution and modifying that copy. While here, print the command line executed in verbose mode. Reported by: many Notes: svn path=/head/; revision=326930
* | | | | | | Fix the undersupported option KERNLOAD, part 1: fix crashes in locoreBruce Evans2017-12-182-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when KERNLOAD is not a multiple of NBPDR (not the default) and PSE is enabled (the default if the CPU supports it). Addresses in PDEs must be a multiple of NBPDR in the PSE case, but were not so in the crashing case. KERNLOAD defaults to NBPDR. NBPDR is 4 MB for !PAE and 2 MB for PAE. The default can be changed by editing i386/include/vmparam.h or using makeoptions. It can be changed to less than NBPDR to save real and virtual memory at a small cost in time, or to more than NBPDR to waste real and virtual memory. It must be larger than 1 MB and a multiple of PAGE_SIZE. When it is less than NBPDR, it is necessarily not a multiple of NBPDR. This case has much larger bugs which will be fixed in part 2. The fix is to only use PSE for physical addresses above <KERNLOAD rounded _up_ to an NBPDR boundary>. When the rounding is non-null, this leaves part of the kernel not using large pages. Rounding down would avoid this pessimization, but would break setting of PAT bits on i/o pages if it goes below 1MB. Since rounding down always goes below 1MB when KERNLOAD < NBPDR and the KERNLOAD > NBPDR case is not useful, never round down. Fix related style bugs (e.g., wrong literal values for NBPDR in comments). Reviewed by: kib Notes: svn path=/head/; revision=326929
* | | | | | | libficl is only ever used in a loader (never a boot) program. Move itWarner Losh2017-12-182-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to loader.mk. Sponsored by: Netflix Notes: svn path=/head/; revision=326927
* | | | | | | Move loader help file definitions to being 100% inside of loader.mk.Warner Losh2017-12-1813-21/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HELP_FILES is a loader only thing, so move it to loader.mk. Only generate the help file if HELP_FILES is defined. Adjust Makefiles to new convention. Fix a few cases where ${.CURDIR}/ was missing resulting in missing bits from the help files. Sponsored by: Netflix Notes: svn path=/head/; revision=326926
* | | | | | | Do not attempt to refill the TX fifo if there is no data left to transfer.Ian Lepore2017-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A comment in bcm_bsc_fill_tx_fifo() even lists sc_totlen > 0 as a precondition for calling the routine. I apparently forgot to make the code do what my comment said. Notes: svn path=/head/; revision=326925
* | | | | | | Fix debugging output, fallout from something like s/read/readctl/gIan Lepore2017-12-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | while renaming variables in a previous change. Notes: svn path=/head/; revision=326924
* | | | | | | Unregister the ARC lowmem event handler earlier in arc_fini().Mark Johnston2017-12-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise a poorly timed lowmem event may attempt to acquire a destroyed lock. Unregister the handler before destroying the ARC reclaim thread. Reported by: gjb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13480 Notes: svn path=/head/; revision=326919
* | | | | | | Move loader-only defines to loader.mk from defs.mkWarner Losh2017-12-162-49/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Produces the same .o's, verified with md5. Sponsored by: Netflix Notes: svn path=/head/; revision=326914
* | | | | | | Sync with NetBSD's /usr/share/dict/words, with the exception of quimWarner Losh2017-12-161-2/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | due to its vulgar nature. Submitted by: sevan@ Differential Revision: https://reviews.freebsd.org/D13510 Notes: svn path=/head/; revision=326913
* | | | | | | Fix a logic bug in makefs lazy inode initialization.Mark Johnston2017-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We may need to initialize multiple inode blocks before writing a given inode. makefs(8) was only initializing a single block at a time, so certain inode allocation patterns could lead to a situation where it wrote an inode to an uninitialized block. That inode might be clobbered by a later initialization, resulting in a filesystem image containing directory entries that point to a seemingly unused inode. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D13505 Notes: svn path=/head/; revision=326912
* | | | | | | Make truss(8) work for i686-unknown-cloudabi binaries on FreeBSD/amd64.Ed Schouten2017-12-162-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change copies the existing amd64_cloudabi64.c to amd64_cloudabi32.c and reimplements the functions for fetching system call arguments and return values to use the same scheme as used by the vDSO that is used when running cloudabi32 executables. As arguments are automatically padded to 64-bit words by the vDSO in userspace, we can copy the arguments directly into the array used by truss(8) internally. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D13516 Notes: svn path=/head/; revision=326911
* | | | | | | libsysdecode: Add a new ABI type, SYSDECODE_ABI_CLOUDABI32.Ed Schouten2017-12-164-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to let truss(8) support tracing of 32-bit CloudABI applications, we need to add a new ABI type to libsysdecode. We can reuse the existing errno mapping table. Also link in the cloudabi32 system call table to translate system call names. While there, remove all of the architecture ifdefs. There are not needed, as the CloudABI data types and system call tables build fine on any architecture. Building this unconditionally will make it easier to do tracing for different compat modes, emulation, etc. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D13516 Notes: svn path=/head/; revision=326910
| | | | | | |
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
| \ \ \ \ \ \
*---------. | | | | | | Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ toDimitry Andric2017-12-1616-20/+123
|\ \ \ \ \ \| | | | | | | | |_|_|_|_|/ / / / / | |/| | | | | / / / / | | | | | |_|/ / / / | | | | |/| | / / / | | | | | | |/ / / | | | | | |/| / / | | | |_|_|_|/ / | | |/| | | | / | | | | |_|_|/ | | | |/| | | 5.0.1 release (upstream r320880). Relnotes: yes MFC after: 2 weeks Notes: svn path=/head/; revision=326909
| | | | | | * Vendor import of llvm 5.0.1 release r320880:vendor/llvm/llvm-release_501-r320880Dimitry Andric2017-12-165-10/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_501/final@320880 Notes: svn path=/vendor/llvm/dist/; revision=326899 svn path=/vendor/llvm/llvm-release_501-r320880/; revision=326900; tag=vendor/llvm/llvm-release_501-r320880
| | | | * | | Vendor import of lld 5.0.1 release r320880:vendor/lld/lld-release_501-r320880Dimitry Andric2017-12-167-2/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/lld/tags/RELEASE_501/final@320880 Notes: svn path=/vendor/lld/dist/; revision=326905 svn path=/vendor/lld/lld-release_501-r320880/; revision=326906; tag=vendor/lld/lld-release_501-r320880
| * | | | | | Vendor import of clang 5.0.1 release r320880:vendor/clang/clang-release_501-r320880Dimitry Andric2017-12-165-11/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_501/final@320880 Notes: svn path=/vendor/clang/dist/; revision=326901 svn path=/vendor/clang/clang-release_501-r320880/; revision=326902; tag=vendor/clang/clang-release_501-r320880
* | | | | | | revert r322589: force use of ld.bfd for linking i386 libcEd Maste2017-12-161-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of r326897 ld.lld can link a working i386 libc.so, so we no longer need to force use of ld.bfd. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326908
* | | | | | | Fix possible memory leak.Andrey V. Elsukov2017-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vxlan_ftable entries are sorted in ascending order, due to wrong arguments order it is possible to stop search before existing element will be found. Then new element will be allocated in vxlan_ftable_update_locked() and can be inserted in the list second time or trigger MPASS() assertion with enabled INVARIANTS. PR: 224371 MFC after: 1 week Notes: svn path=/head/; revision=326898
* | | | | | | lld: Slightly simplify code and add comment.Ed Maste2017-12-161-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-pick lld r315658 by Rui Ueyama: This is not a mechanical transformation. Even though I believe this patch is correct, I'm not 100% sure if lld with this patch behaves exactly the same way as before on all edge cases. At least all tests still pass. I'm submitting this patch because it took almost a day to understand this function, and I don't want to lose it. This fixes jemalloc assertion failures observed at startup with i386 binaries and an lld-linked libc.so. Reviewed by: dim Obtained from: LLVM r315658 MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D13503 Notes: svn path=/head/; revision=326897
* | | | | | | Remove white space at EOL.Jens Schweikhardt2017-12-161-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=326896