projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35f04a
)
MC: fix ctor/dtor section for windows-itanium
author
Saleem Abdulrasool
<compnerd@compnerd.org>
Sun, 8 Jun 2014 00:34:27 +0000
(
00:34
+0000)
committer
Saleem Abdulrasool
<compnerd@compnerd.org>
Sun, 8 Jun 2014 00:34:27 +0000
(
00:34
+0000)
This adjusts the section setup for the windows-itanium environment. This
environment does not report to be a known windows msvc environment, even though
it is (nearly) identical to the MSVC environment for C code.
llvm-svn: 210406
llvm/lib/MC/MCObjectFileInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCObjectFileInfo.cpp
b/llvm/lib/MC/MCObjectFileInfo.cpp
index
ee12ff3
..
d3d0832
100644
(file)
--- a/
llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/
llvm/lib/MC/MCObjectFileInfo.cpp
@@
-598,7
+598,7
@@
void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
COFF::IMAGE_SCN_MEM_READ,
SectionKind::getReadOnly());
- if (T.isKnownWindowsMSVCEnvironment()) {
+ if (T.isKnownWindowsMSVCEnvironment()
|| T.isWindowsItaniumEnvironment()
) {
StaticCtorSection =
Ctx->getCOFFSection(".CRT$XCU",
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |