Go to file
Ed Schouten f2fdd013a2 Don't omit dynamic relocations for the GOT.
Where Clang's AArch64 backend seems to differ from the X86 backend is
that it tends to use the GOT more aggressively.

After getting CloudABI PIEs working on x86-64, I noticed that accessing
global variables would still crash on aarch64. Tracing it down, it turns
out that the GOT was filled with entries assuming the base address was
zero.

It turns out that we skip generating relocations for GOT entries in case
the relocation pointing towards the GOT is relative. Whether the thing
pointing to the GOT is absolute or relative shouldn't make any
difference; the GOT entry itself should contain the absolute address,
thus needs a relocation regardless.

Approved by:	rafael
Differential Revision:	http://reviews.llvm.org/D18739

llvm-svn: 265453
2016-04-05 20:17:33 +00:00
clang Fix broken tests from no-jump-table commit 2016-04-05 18:59:37 +00:00
clang-tools-extra [clang-tidy] Add a check to detect static definitions in anonymous namespace. 2016-04-05 11:42:08 +00:00
compiler-rt [tsan] Fix freebsd build. 2016-04-05 05:37:48 +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 Update copyright year to 2016. 2016-03-30 22:39:03 +00:00
libcxx Remove unused internal routines. No functional change 2016-04-04 23:23:35 +00:00
libcxxabi Update copyright year to 2016. 2016-03-30 22:40:47 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld Don't omit dynamic relocations for the GOT. 2016-04-05 20:17:33 +00:00
lldb Fix a crasher that could happen if ClangASTSource::CompleteType() found a type whose name matched, but came from a different language. We need to verify that any types we find are clang types before trying to extra a clang::QualType and then use it. 2016-04-05 19:29:05 +00:00
llgo [llgo] add USES_TERMINAL option to check-libgo 2016-03-30 00:29:33 +00:00
llvm llvm-dwp: Handle dwo files produced by GCC 2016-04-05 20:16:38 +00:00
openmp [STATS] Remove trailing whitespace in stats source files 2016-04-05 18:48:48 +00:00
polly Add test case forgotten in r265379. 2016-04-05 17:40:07 +00:00