diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-06 09:22:29 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-06 09:22:29 +0000 | 
| commit | f5a3459adfde823bc7617f8ecfdd9fbc5a1ffadf (patch) | |
| tree | 542734eaa7870f95912cbaebccb87dbec0c20b4f /lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
| parent | 67a71b3184ce20a901e874d0ee25e01397dd87ef (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
| -rw-r--r-- | lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index ef6e12990d3d..3b3be5d9b1ad 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -550,8 +550,8 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,    }    // Exception Handling. -  LSDASection = getMachOSection("__TEXT", "__gcc_except_tab", 0, -                                SectionKind::getReadOnlyWithRel()); +  LSDASection = getMachOSection("__DATA", "__gcc_except_tab", 0, +                                SectionKind::getDataRel());    EHFrameSection =      getMachOSection("__TEXT", "__eh_frame",                      MCSectionMachO::S_COALESCED | @@ -652,7 +652,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,    // FIXME: Alignment check should be handled by section classifier.    if (Kind.isMergeable1ByteCString() || -      Kind.isMergeable2ByteCString()) { +      (Kind.isMergeable2ByteCString() && !GV->hasExternalLinkage())) {      if (TM.getTargetData()->getPreferredAlignment(                                                cast<GlobalVariable>(GV)) < 32) {        if (Kind.isMergeable1ByteCString()) @@ -779,7 +779,7 @@ unsigned TargetLoweringObjectFileMachO::getFDEEncoding() const {  }  unsigned TargetLoweringObjectFileMachO::getTTypeEncoding() const { -  return DW_EH_PE_indirect | DW_EH_PE_pcrel | DW_EH_PE_sdata4; +  return DW_EH_PE_absptr;  }  //===----------------------------------------------------------------------===// | 
