Skip to content

Commit 87fc9a4

Browse files
author
Nenad Vukicevic
committed
Fixes builds WITHOUT link scripts. Fixes $88 failed under clang-upc.
1 parent 76d61ec commit 87fc9a4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/MC/MCObjectFileInfo.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,10 @@ void MCObjectFileInfo::initELFMCObjectFileInfo(Triple T) {
478478
#ifndef LIBUPC_LINK_SCRIPT
479479
UPCSection =
480480
Ctx->getELFSection("upc_shared", ELF::SHT_NOBITS,
481-
ELF::SHF_WRITE |ELF::SHF_ALLOC,
482-
SectionKind::getReadOnly());
481+
ELF::SHF_WRITE |ELF::SHF_ALLOC);
483482
UPCPgmSection =
484483
Ctx->getELFSection("upc_pgm_info", ELF::SHT_PROGBITS,
485-
ELF::SHF_ALLOC,
486-
SectionKind::getDataRel());
484+
ELF::SHF_ALLOC);
487485
#endif
488486

489487
// Exception Handling Sections.

0 commit comments

Comments
 (0)