Skip to content

Commit

Permalink
Additional fix for Mac OS section names. Bug #6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad Vukicevic committed Mar 8, 2013
1 parent b58ec33 commit 6a64bf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/CodeGen/CodeGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,10 @@ void CodeGenModule::EmitUPCInits(const CtorList &Fns, const char *GlobalName) {
llvm::GlobalValue::AppendingLinkage,
llvm::ConstantArray::get(AT, Ctors),
GlobalName);
GV->setSection("upc_init_array");
if(isTargetDarwin())
GV->setSection("__DATA,upc_init_array");
else
GV->setSection("upc_init_array");
}
}

Expand Down

0 comments on commit 6a64bf5

Please sign in to comment.