Go to file
Rafael Espindola 679828ff92 Diagnose another case of the location counter moving backwards.
This case should be possible to handle, but it is hard:

* In order to create program headers correctly, we have to scan the
  sections in the order they are in the file.

* To find that order, we have to "execute" the linker script.

* The linker script can contain SIZEOF_HEADERS.

So to support this we have to start with a guess of how many headers
we need (3), run the linker script and try to create the program
headers. If it turns out we need more headers, we run the script again
with a larger SIZEOF_HEADERS.

Also, running the linker script depends on knowing the size of the
sections, so we have to finalize them. But creating the program
headers can change the value stored in some sections, so we have to
split size finalization and content finalization.

Looks like the last part is also needed for range extension thunks, so
we might support this at some point. For now just report an error
instead of producing broken files.

llvm-svn: 295458
2017-02-17 16:26:13 +00:00
clang clang-format: Don't remove existing spaces between identifier and ::. 2017-02-17 10:44:07 +00:00
clang-tools-extra [clang-tidy] Add cert-dcl58-cpp (do not modify the 'std' namespace) check. 2017-02-17 08:52:51 +00:00
compiler-rt Revert "Use pthreads for thread-local lsan allocator cache on darwin" 2017-02-17 14:42:30 +00:00
debuginfo-tests
libclc Move BufferPtr into the block where it it being used 2017-02-12 21:33:49 +00:00
libcxx Update all bug URL's to point to https://bugs.llvm.org/... 2017-02-17 08:37:03 +00:00
libcxxabi Fix test_exception_storage.pass.cpp in C++17 my re-enabling the unexpected handlers 2017-02-17 04:26:22 +00:00
libunwind [libunwind][CMake] Use libc++ headers when available 2017-02-16 05:18:08 +00:00
lld Diagnose another case of the location counter moving backwards. 2017-02-17 16:26:13 +00:00
lldb NPL: Fix an incorrect logging formatv call 2017-02-17 16:09:10 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [LV] Remove constant restriction for vector phi creation 2017-02-17 16:09:07 +00:00
openmp Run-time library part of OpenMP 5.0 task reduction implementation. 2017-02-16 17:49:49 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Drop leftover debug statement 2017-02-17 13:39:45 +00:00