[PATCH] D47755: [RISCV] Insert R_RISCV_ALIGN relocation type and Nops for alignment when linker relaxation enabled
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 17 05:29:31 PDT 2018
asb added a comment.
It would also be worth testing the treatment of alignment directives emitted when generating a constant pool. Currently ConstantPool::emitEntries will use EmitCodeAlignment, but https://reviews.llvm.org/D45961 suggests changing it to EmitCodeAlignment. This affects whether EmitNops is true for the MCAlignFragment. However this patch doesn't query that property anyway. It might be worth documenting that limitation and perhaps double-checking GCC behaviour. I assume that if you use .align with a value to fill with, GCC ignores that value if linker relaxation is enabled?
Repository:
rL LLVM
https://reviews.llvm.org/D47755
More information about the llvm-commits
mailing list