Go to file
Rafael Espindola 35d6189f0f Compute A-B when A or B is weak.
Similar to r235222, but for the weak symbol case.

In an "ideal" assembler/object format an expression would always refer to the
final value and A-B would only be computed from a section in the same
comdat as A and B with A and B strong.

Unfortunately that is not the case with debug info on ELF, so we need an
heuristic.  Since we need an heuristic, we may as well use the same one as
gas:

* call weak_sym : produces a relocation, even if in the same section.
* A - weak_sym and weak_sym -A: don't produce a relocation if we can
  compute it.

This fixes pr23272 and changes the fix of pr22815 to match what gas does.

llvm-svn: 235227
2015-04-17 21:15:17 +00:00
clang Add a missing forward def of CheckerManager. NFC. 2015-04-17 17:00:16 +00:00
clang-tools-extra [clang-tidy] Remove static StringSet in favor of binary search. 2015-04-17 13:52:08 +00:00
compiler-rt test commit 2015-04-17 10:14:16 +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 Implement atanh builtin 2015-04-07 16:20:22 +00:00
libcxx A few bits of N2994 didn't get fully implemented a long time ago. Thanks to STL@microsoft.com for the bug report 2015-04-16 21:36:54 +00:00
libcxxabi Declare __cxa_new_handler as extern "C", or it declares a new variable 2015-04-15 15:35:56 +00:00
lld Delete dead code (again). 2015-04-17 18:58:34 +00:00
lldb Whitespace-only tweaks to Colin's r235109 patch to match the lldb 2015-04-17 19:15:02 +00:00
llgo [llgo] add buildbot-slave config 2015-04-08 01:41:46 +00:00
llvm Compute A-B when A or B is weak. 2015-04-17 21:15:17 +00:00
openmp updated copyright date to 2015 2015-04-16 11:10:17 +00:00
polly [opaque pointer types] Explicit non-pointer type for call expressions 2015-04-16 23:24:52 +00:00