summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2019-12-17 07:31:31 -0800
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2019-12-17 07:36:59 -0800
commit2423774cc2a040d34d32aacaf261805cb195ebd2 (patch)
tree591f108d8f676b9d5c8bb3e10fd6c6767834429c /llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
parent9ab15f303efdfc841f475918535ab4e13960491b (diff)
downloadbcm5719-llvm-2423774cc2a040d34d32aacaf261805cb195ebd2.tar.gz
bcm5719-llvm-2423774cc2a040d34d32aacaf261805cb195ebd2.zip
Revert "Honor -fuse-init-array when os is not specified on x86"
This reverts commit aa5ee8f244441a8ea103a7e0ed8b6f3e74454516. This change broke the sanitizer buildbots. See comments at the patchset (https://reviews.llvm.org/D71360) for more information.
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsTargetObjectFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
index ffd7a057bf0..0852b5a18c6 100644
--- a/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
+++ b/llvm/lib/Target/Mips/MipsTargetObjectFile.cpp
@@ -44,6 +44,7 @@ EmbeddedData("membedded-data", cl::Hidden,
void MipsTargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &TM){
TargetLoweringObjectFileELF::Initialize(Ctx, TM);
+ InitializeELF(TM.Options.UseInitArray);
SmallDataSection = getContext().getELFSection(
".sdata", ELF::SHT_PROGBITS,
OpenPOWER on IntegriCloud