projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use SHT_X86_64_UNWIND on every OS.
[oota-llvm.git]
/
lib
/
MC
/
MCObjectFileInfo.cpp
diff --git
a/lib/MC/MCObjectFileInfo.cpp
b/lib/MC/MCObjectFileInfo.cpp
index 4c51c8363f3ec49a286d90bcca181c94c62383fa..8849f5d4d122776bfce1aef8ab72a4bbe80aab8c 100644
(file)
--- a/
lib/MC/MCObjectFileInfo.cpp
+++ b/
lib/MC/MCObjectFileInfo.cpp
@@
-416,16
+416,14
@@
void MCObjectFileInfo::initELFMCObjectFileInfo(Triple T) {
break;
}
break;
}
+ EHSectionType = T.getArch() == Triple::x86_64 ? ELF::SHT_X86_64_UNWIND
+ : ELF::SHT_PROGBITS;
+
// Solaris requires different flags for .eh_frame to seemingly every other
// platform.
// Solaris requires different flags for .eh_frame to seemingly every other
// platform.
- EHSectionType = ELF::SHT_PROGBITS;
EHSectionFlags = ELF::SHF_ALLOC;
EHSectionFlags = ELF::SHF_ALLOC;
- if (T.isOSSolaris()) {
- if (T.getArch() == Triple::x86_64)
- EHSectionType = ELF::SHT_X86_64_UNWIND;
- else
- EHSectionFlags |= ELF::SHF_WRITE;
- }
+ if (T.isOSSolaris() && T.getArch() != Triple::x86_64)
+ EHSectionFlags |= ELF::SHF_WRITE;
// ELF
BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS,
// ELF
BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS,