llvm-project/llvm
Eli Friedman 0b61d220c9 [AArch64][Windows] Compute function length correctly in unwind tables.
The primary fix here is to WinException.cpp: we need to exclude jump
tables when computing the length of a function, or else we fail to
correctly compute the length. (We can only compute the number of bytes
consumed by certain assembler directives after the entire file is
parsed. ".p2align" is one of those directives, and is used by jump table
generation.)

The secondary fix, to MCWin64EH, is to make sure we don't silently
miscompile if we hit a similar situation in the future.

It's possible we could extend ARM64EmitUnwindInfo so it allows function
bodies that contain assembler directives, but that's a lot more
complicated; see the FIXME in MCWin64EH.cpp.

Fixes https://bugs.llvm.org/show_bug.cgi?id=41581 .

Differential Revision: https://reviews.llvm.org/D61095

llvm-svn: 359849
2019-05-03 00:10:45 +00:00
..
benchmarks
bindings
cmake build: add option to disable unwind tables 2019-05-02 19:37:26 +00:00
docs build: add option to disable unwind tables 2019-05-02 19:37:26 +00:00
examples
include [MemorySSA] Refactor removing multiple trivial phis [NFC]. 2019-05-02 23:12:49 +00:00
lib [AArch64][Windows] Compute function length correctly in unwind tables. 2019-05-03 00:10:45 +00:00
projects
resources
runtimes
test [AArch64][Windows] Compute function length correctly in unwind tables. 2019-05-03 00:10:45 +00:00
tools Revert [llvm-nm] Fix handling of symbol types + [llvm-nm] Generalize symbol types 2019-05-02 21:42:46 +00:00
unittests Object/Minidump: Add support for the ThreadList stream 2019-05-02 07:45:42 +00:00
utils [gn] Include the missing BUILD.gn file for libcxxabi includes 2019-05-02 21:20:08 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt build: add option to disable unwind tables 2019-05-02 19:37:26 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.