aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-09-05 18:03:38 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-09-05 18:03:38 +0000
commitb582372e87a7a9821c0ddfd472ab3d651e4ae04e (patch)
tree95577f1f33029c7f8ebde676066f7db99e84bca3 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent3e930a3e83da66672274f09e340abf77dace7036 (diff)
downloadllvm-b582372e87a7a9821c0ddfd472ab3d651e4ae04e.zip
llvm-b582372e87a7a9821c0ddfd472ab3d651e4ae04e.tar.gz
llvm-b582372e87a7a9821c0ddfd472ab3d651e4ae04e.tar.bz2
Revert "Disable the fix for pr20793 because of a gnu ld bug."
This reverts commit r217211. Both the bfd ld and gold outputs were valid. They were using a Rela relocation, so the value present in the relocated location was not used, which caused me to misread the output. llvm-svn: 217264
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index bf68501..53c7b09 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -31,7 +31,6 @@
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Dwarf.h"
#include "llvm/Support/ELF.h"
#include "llvm/Support/ErrorHandling.h"
@@ -42,13 +41,6 @@
using namespace llvm;
using namespace dwarf;
-// Disabled by default because it hits bug 17350 in GNU ld (gold is fine)
-static cl::opt<bool>
- EnableStructorCOMDAT("enable-structor-comdat", cl::Hidden,
- cl::desc("Use comdats to keep only one copy of a "
- "constructor/destructor invocation"),
- cl::init(false));
-
//===----------------------------------------------------------------------===//
// ELF
//===----------------------------------------------------------------------===//
@@ -371,9 +363,6 @@ static const MCSectionELF *getStaticStructorSection(MCContext &Ctx,
bool IsCtor,
unsigned Priority,
const MCSymbol *KeySym) {
- if (!EnableStructorCOMDAT)
- KeySym = nullptr;
-
std::string Name;
unsigned Type;
unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE;