From 040872326943cd75a9be5b9246698949f3a0ae3b Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sat, 31 Jan 2009 01:07:39 +0000 Subject: [PATCH] class meta-data belong to __objc_data section (in objc2 nonfragile abi). llvm-svn: 63461 --- clang/lib/CodeGen/CGObjCMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 7f5857090014..6c35041b9714 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -3384,7 +3384,7 @@ llvm::GlobalVariable * CGObjCNonFragileABIMac::BuildClassMetaData( Init, ClassName, &CGM.getModule()); - GV->setSection("__DATA, __objc_const"); + GV->setSection("__DATA, __objc_data"); GV->setAlignment(GetPointerAlign()); if (HiddenVisibility) GV->setVisibility(llvm::GlobalValue::HiddenVisibility);