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)
commit41de8027b1f744c1e52f54ca9a1b120c7fda81af
tree38c65f7deacbb6c2e627a040d4284143473442a8
parent6d9be8e771bd058ae513a89bd7932fa4b2aaddc6
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.

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