Index: src/IceCfg.cpp |
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
index e0f48ab00d0e7e1c8fbbc91a517f071a4db71078..5b5c32b834adcd202452af1dc82162ef2294813a 100644 |
--- a/src/IceCfg.cpp |
+++ b/src/IceCfg.cpp |
@@ -464,9 +464,10 @@ void Cfg::emitTextHeader(const IceString &MangledName, GlobalContext *Ctx, |
Str << "\t.section\t.text." << MangledName << ",\"ax\",@progbits\n"; |
if (!Asm->getInternal() || Ctx->getFlags().getDisableInternal()) { |
Str << "\t.globl\t" << MangledName << "\n"; |
- Str << "\t.type\t" << MangledName << ",@function\n"; |
+ Str << "\t.type\t" << MangledName << ",%function\n"; |
} |
- Str << "\t.p2align " << Asm->getBundleAlignLog2Bytes() << ",0x"; |
+ Str << "\t" << Asm->getNonExecPadDirective() << " " |
+ << Asm->getBundleAlignLog2Bytes() << ",0x"; |
for (uint8_t I : Asm->getNonExecBundlePadding()) |
Str.write_hex(I); |
Str << "\n"; |