mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Fix for .pdata and .xdata section attributes on COFF.
Patch by kai@redstar.de ! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0bd3deeb29
commit
0a0e50cd18
@ -507,15 +507,13 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
|
||||
PDataSection =
|
||||
Ctx->getCOFFSection(".pdata",
|
||||
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ |
|
||||
COFF::IMAGE_SCN_MEM_WRITE,
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getDataRel());
|
||||
|
||||
XDataSection =
|
||||
Ctx->getCOFFSection(".xdata",
|
||||
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ |
|
||||
COFF::IMAGE_SCN_MEM_WRITE,
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getDataRel());
|
||||
TLSDataSection =
|
||||
Ctx->getCOFFSection(".tls$",
|
||||
|
@ -228,8 +228,7 @@ static const MCSection *getWin64EHTableSection(StringRef suffix,
|
||||
|
||||
return context.getCOFFSection((".xdata"+suffix).str(),
|
||||
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ |
|
||||
COFF::IMAGE_SCN_MEM_WRITE,
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getDataRel());
|
||||
}
|
||||
|
||||
@ -239,8 +238,7 @@ static const MCSection *getWin64EHFuncTableSection(StringRef suffix,
|
||||
return context.getObjectFileInfo()->getPDataSection();
|
||||
return context.getCOFFSection((".pdata"+suffix).str(),
|
||||
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
||||
COFF::IMAGE_SCN_MEM_READ |
|
||||
COFF::IMAGE_SCN_MEM_WRITE,
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getDataRel());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user