mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
MC: fix ctor/dtor section for windows-itanium
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210406 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
83444b887d
commit
a926467222
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user