diff options
author | Fangrui Song <maskray@google.com> | 2019-03-18 23:49:18 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-03-18 23:49:18 +0000 |
commit | 1092fc9057b634a77d30c2ae730887030b602496 (patch) | |
tree | ff5df5e4b776d46ba165b80f09cac799724abeb8 /llvm/test | |
parent | ad4d52a50140e39cd93c195cf7333460a273f378 (diff) | |
download | bcm5719-llvm-1092fc9057b634a77d30c2ae730887030b602496.tar.gz bcm5719-llvm-1092fc9057b634a77d30c2ae730887030b602496.zip |
[ELF] Allow sh_entsize to be unrelated to sh_addralign and not a power of 2
Summary:
This implements Rui Ueyama's idea in PR39044.
I've checked that ld.bfd and gold do not have the power-of-2 requirement
and do not require sh_entsize to be a multiple of sh_align.
Now on the updated test merge-entsize.s, all the 3 linkers happily
create .rodata that is not 3-byte aligned.
This has a use case in Linux arch/x86/crypto/sha512-avx2-asm.S
It uses sh_entsize of 640, which is not a power of 2.
See https://github.com/ClangBuiltLinux/linux/issues/417
Reviewers: ruiu, espindola
Reviewed By: ruiu
Subscribers: nickdesaulniers, E5ten, emaste, arichardson, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59478
llvm-svn: 356428
Diffstat (limited to 'llvm/test')
0 files changed, 0 insertions, 0 deletions