| Index: src/IceELFObjectWriter.cpp
|
| diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp
|
| index 4e56d858289591877eb3cc3b5cb17cf970c6f661..b8f678ebf4875963cfde149e752688f7a4e10dc7 100644
|
| --- a/src/IceELFObjectWriter.cpp
|
| +++ b/src/IceELFObjectWriter.cpp
|
| @@ -225,8 +225,7 @@ void ELFObjectWriter::writeFunctionCode(const IceString &FuncName,
|
| SectionName += "." + FuncName;
|
| bool IsELF64 = isELF64(Ctx.getTargetArch());
|
| const Elf64_Xword ShFlags = SHF_ALLOC | SHF_EXECINSTR;
|
| - // TODO(jvoung): Should be bundle size. Grab it from that target?
|
| - const Elf64_Xword ShAlign = 32;
|
| + const Elf64_Xword ShAlign = 1 << Asm->getBundleAlignLog2Bytes();
|
| Section = createSection<ELFTextSection>(SectionName, SHT_PROGBITS, ShFlags,
|
| ShAlign, 0);
|
| Elf64_Off OffsetInFile = alignFileOffset(Section->getSectionAlign());
|
|
|