Go to file
Rui Ueyama edf75e7992 Allow SIZEOF() command on nonexistent section.
Linker script doesn't create a section if it has no content. So the following
script doesn't create .norelocs section if it doesn't have any .rel* sections.

  .norelocs : { *(.rel*) }

Later, if you assert that the size of .norelocs is 0, LLD printed out
an error message, because it didn't allow calling SIZEOF() on nonexistent
sections.

This patch allows SIZEOF() on nonexistent sections, so that you can do
something like this.

  ASSERT(SIZEOF(.norelocs), "shouldn't contain .rel sections!")

Note that this behavior is compatible with GNU.

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

llvm-svn: 287257
2016-11-17 20:27:10 +00:00
clang ObjC Module: try to make objc module deterministic. 2016-11-17 18:41:18 +00:00
clang-tools-extra [include-fixer] Add a test for the full round trip through libclang and the plugin. 2016-11-17 15:23:06 +00:00
compiler-rt [asan] Create a .ASAN$G(A-Z) section for global registration 2016-11-17 19:02:53 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Fix build since r286752. 2016-11-14 16:06:33 +00:00
libcxx Workaround compilers w/o C++1z inline variables 2016-11-17 20:08:43 +00:00
libcxxabi __cxa_demangle: allow demangling invocation blocks 2016-11-14 03:07:47 +00:00
libunwind [CMake] Get libunwind building under LLVM/runtimes 2016-11-08 23:02:49 +00:00
lld Allow SIZEOF() command on nonexistent section. 2016-11-17 20:27:10 +00:00
lldb Rewrite all Property related functions in terms of StringRef. 2016-11-17 18:08:12 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm [CMake] Error when LTO and lld are enabled on Darwin 2016-11-17 20:22:49 +00:00
openmp Update stats-gathering code 2016-11-14 21:13:44 +00:00
parallel-libs [Acxxel] Remove setActiveDeviceForThread 2016-10-28 00:54:02 +00:00
polly Update to isl-0.17.1-267-gbf9723d 2016-11-16 11:06:47 +00:00