diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-10-25 14:50:51 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-10-25 14:50:51 +0000 |
commit | f22ec9ddf61a1328f77f039c786cab5d79397ffb (patch) | |
tree | bf21a61a859f577e7c4c864153254efca67ef5c4 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | a3436bb21a26799610005f1956ec0e6ce36789b0 (diff) | |
download | llvm-f22ec9ddf61a1328f77f039c786cab5d79397ffb.zip llvm-f22ec9ddf61a1328f77f039c786cab5d79397ffb.tar.gz llvm-f22ec9ddf61a1328f77f039c786cab5d79397ffb.tar.bz2 |
[ELF] - Linkerscript: fix issue with SUBALIGN.
This is PR34886.
SUBALIGN command currently triggers failture if result expression
is zero. Patch fixes the issue, treating zero as 1, what is consistent with
other places and ELF spec it seems.
Patch also adds "is power of 2" check for this and other expressions
returning alignment.
Differential revision: https://reviews.llvm.org/D38846
llvm-svn: 316580
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions