Go to file
Hal Finkel 6f97c2bc00 [ELF2] getLocalRelTarget should handle R_PPC64_TOC directly
R_PPC64_TOC does not have an associated symbol, but does have a non-zero VA
that target-specific code must compute using some non-trivial rule. We
handled this as a special case in PPC64TargetInfo::relocateOne, where
we knew to write this special address, but that did not work when creating shared
libraries. The special TOC address needs to be the subject of a
R_PPC64_RELATIVE relocation, and so we also need to know how to encode this
special address in the addend of that relocation.

Thus, some target-specific logic is necessary when creating R_PPC64_RELATIVE as
well. To solve this problem, we teach getLocalRelTarget to handle R_PPC64_TOC
as a special case. This allows us to remove the special case in
PPC64TargetInfo::relocateOne (simplifying code there), and naturally allows the
existing logic to do the right thing when creating associated R_PPC64_RELATIVE
relocations for shared libraries.

llvm-svn: 250555
2015-10-16 21:55:40 +00:00
clang Refactor module lookup when looking up a header file, and wire through the requesting module. No functionality change. 2015-10-16 21:42:56 +00:00
clang-tools-extra [clang-tidy] add check cppcoreguidelines-pro-type-union-access 2015-10-16 18:46:30 +00:00
compiler-rt builtins: Expand out floating point exponents for MSVC 2015-10-15 04:26:19 +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 integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Fix an unfortunate yet old typo that never got attention before r250507. 2015-10-16 11:26:26 +00:00
libcxxabi Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
libunwind Add FreeBSD _Unwind_Ptr typedef 2015-10-16 19:40:09 +00:00
lld [ELF2] getLocalRelTarget should handle R_PPC64_TOC directly 2015-10-16 21:55:40 +00:00
lldb [LLDB] Fix Clang-tidy modernize-use-override warnings in source/Plugins/ABI; other minor fixes. 2015-10-16 18:49:42 +00:00
llgo [llgo] irgen: always use TargetMachine's data layout 2015-09-25 06:28:14 +00:00
llvm [WinEH] Fix CatchRetSuccessorColorMap accounting 2015-10-16 21:22:54 +00:00
openmp [OMPT] Add OMPT events for API locking 2015-10-16 16:52:58 +00:00
polly Add testcase for r250517 2015-10-16 15:17:26 +00:00