Revert r240302 ("Bring r240130 back.").
authorDaniel Jasper <djasper@google.com>
Tue, 23 Jun 2015 11:31:32 +0000 (11:31 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 23 Jun 2015 11:31:32 +0000 (11:31 +0000)
commitb7f5b8b4b288b43859c4ed32f439812896167cac
treef96986662daee63ecef7ac07475fd2becccf5473
parentb7c46b5fc9fd16b8bc4058e88074b4fb55665f74
Revert r240302 ("Bring r240130 back.").

This causes errors like:

  ld: error: blah.o: requires dynamic R_X86_64_PC32 reloc against '' which
  may overflow at runtime; recompile with -fPIC
  blah.cc:function f(): error: undefined reference to ''
  blah.o:g(): error: undefined reference to ''

I have not yet come up with an appropriate reproduction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240394 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/llvm/MC/MCContext.h
lib/MC/ELFObjectWriter.cpp
lib/MC/MCContext.cpp
lib/MC/MachObjectWriter.cpp
test/CodeGen/SPARC/obj-relocs.ll
test/MC/ARM/elf-reloc-02.s
test/MC/ELF/basic-elf-32.s
test/MC/ELF/compression.s
test/MC/ELF/discriminator.s
test/MC/ELF/merge.s
test/MC/ELF/relocation-386.s
test/MC/ELF/undef-temp.s [deleted file]
test/MC/ELF/undef.s
test/MC/ELF/undef2.s [new file with mode: 0644]
test/MC/MachO/AArch64/classrefs.s
test/MC/MachO/AArch64/darwin-ARM64-reloc.s
test/MC/MachO/AArch64/ld64-workaround.s
test/MC/MachO/AArch64/mergeable.s
test/MC/MachO/AArch64/reloc-crash.s
test/MC/MachO/x86_64-mergeable.s
test/MC/MachO/x86_64-symbols.s
test/MC/Mips/cpsetup.s
test/MC/Mips/elf-relsym.s
test/MC/Mips/xgot.s
test/MC/Sparc/sparc-pic.s