parent
c9c277ba0f
commit
a61c05adc0
|
@ -662,7 +662,7 @@ bool AsmParser::ParseDirectiveDarwinSection() {
|
|||
// FIXME: Arch specific.
|
||||
MCSection *S = Ctx.GetSection(Section);
|
||||
if (S == 0)
|
||||
S = MCSection::Create(Section, SectionKind(), Ctx);
|
||||
S = MCSection::Create(Section, false, SectionKind(), Ctx);
|
||||
|
||||
Out.SwitchSection(S);
|
||||
return false;
|
||||
|
@ -683,7 +683,7 @@ bool AsmParser::ParseDirectiveSectionSwitch(const char *Section,
|
|||
// FIXME: Arch specific.
|
||||
MCSection *S = Ctx.GetSection(Section);
|
||||
if (S == 0)
|
||||
S = MCSection::Create(Section, SectionKind(), Ctx);
|
||||
S = MCSection::Create(Section, false, SectionKind(), Ctx);
|
||||
|
||||
Out.SwitchSection(S);
|
||||
return false;
|
||||
|
@ -1074,7 +1074,7 @@ bool AsmParser::ParseDirectiveDarwinZerofill() {
|
|||
// FIXME: Arch specific.
|
||||
MCSection *S = Ctx.GetSection(Section);
|
||||
if (S == 0)
|
||||
S = MCSection::Create(Section, SectionKind(), Ctx);
|
||||
S = MCSection::Create(Section, false, SectionKind(), Ctx);
|
||||
|
||||
// Create the zerofill section but no symbol
|
||||
Out.EmitZerofill(S);
|
||||
|
@ -1134,7 +1134,7 @@ bool AsmParser::ParseDirectiveDarwinZerofill() {
|
|||
// FIXME: Arch specific.
|
||||
MCSection *S = Ctx.GetSection(Section);
|
||||
if (S == 0)
|
||||
S = MCSection::Create(Section, SectionKind(), Ctx);
|
||||
S = MCSection::Create(Section, false, SectionKind(), Ctx);
|
||||
|
||||
// Create the zerofill Symbol with Size and Pow2Alignment
|
||||
Out.EmitZerofill(S, Sym, Size, Pow2Alignment);
|
||||
|
|
|
@ -192,6 +192,7 @@ static int AssembleInput(const char *ProgName) {
|
|||
// FIXME: Target hook & command line option for initial section.
|
||||
Str.get()->SwitchSection(MCSection::Create("__TEXT,__text,"
|
||||
"regular,pure_instructions",
|
||||
false,
|
||||
SectionKind::get(SectionKind::Text),
|
||||
Ctx));
|
||||
|
||||
|
|
Loading…
Reference in New Issue