[PATCH] D22954: [ELF] Allow arbitrary code alignment in .eh_frame
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 21:39:53 PDT 2016
phosek added a comment.
Even though the blog post <http://www.airs.com/blog/archives/460> from Ian Lance Taylor says that "... should always be 1 for .eh_frame." there is no such thing in the standard and both ld and gold allow arbitrary code alignment factor. Hence, there is no reason lld should enforce the value to be 1.
Furthermore, this breaks while linking objects on some platforms; for example the binutils assembler uses code alignment 4 when emitting the CFI on arm64 which is the most sensible thing to use, since instructions are always 4-byte aligned.
https://reviews.llvm.org/D22954
More information about the llvm-commits
mailing list