Go to file
Rui Ueyama 327db80dd5 [ELF] Support --defsym=<symbol>=<symbol>.
Currently LLD supports --defsym only in the form of
--defsym=<symbol>=<integer>, where the integer is interpreted as the
absolute address of the symbol. This patch extends it to allow other
symbol name to be given as an RHS value. If a RHS value is a symbol
name, the LHS symbol will be defined as an alias for the RHS symbol.

Internally, a LHS symbol is represented as a zero-size defined atom
who has an LayoutAfter reference to an undefined atom, whose name is
the RHS value. Everything else is already implemented -- Resolver
will resolve the undefined symbol, and the layout pass will layout
the two atoms at the same location. Looks like it's working fine.

Note that GNU LD supports --defsym=<symbol>=<symbol>+<addend>. That
feature is out of scope of this patch.

Differential Revision: http://reviews.llvm.org/D3332

llvm-svn: 206417
2014-04-16 20:58:57 +00:00
clang Handle -m32 for NetBSD/sparc64 correctly. Extend test case to also check 2014-04-16 20:44:17 +00:00
clang-tools-extra test/clang-tidy/redundant-smartptr-get*.cpp: Both of them really require shell. 2014-04-10 03:17:22 +00:00
compiler-rt [asan] add __asan_load1/__asan_store1/... callbacks to asan-rt; together with -mllvm -asan-instrumentation-with-call-threshold=N this will be a workaround for PR17409 2014-04-16 13:52:28 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Introduce M_LOG2E_F and M_LOG2E 2014-03-28 21:19:03 +00:00
libcxx Define a new macro in libc++ named '_LIBCPP_HAS_NO_ASAN'. When this is defined, 2014-04-14 15:44:57 +00:00
libcxxabi Properly sign extend sdata2/4 in unwinder. Patch by Patrick Wildt 2014-04-12 23:22:52 +00:00
lld [ELF] Support --defsym=<symbol>=<symbol>. 2014-04-16 20:58:57 +00:00
lldb Clean up the logic in setting timeouts a bit, and the logging as well. 2014-04-16 02:24:48 +00:00
llvm Added new functionality to LLVM C API to use DiagnosticInfo to handle errors 2014-04-16 17:45:04 +00:00
openmp Add the offload directory which contains the code needed to support 2014-04-09 15:40:23 +00:00
polly [C++11] Use nullptr 2014-04-16 07:33:47 +00:00