diff options
author | Rui Ueyama <ruiu@google.com> | 2014-11-14 21:33:07 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-11-14 21:33:07 +0000 |
commit | 71aa1a9355d80ac3c9579a1277f07fd7b2a609f2 (patch) | |
tree | 39423284dd1af8f0820fdc1949d213acfa5b94f8 /clang/lib/Sema/SemaChecking.cpp | |
parent | 2e2b0b3942d1a6ea5ae1f0eb67f916f974a05493 (diff) | |
download | bcm5719-llvm-71aa1a9355d80ac3c9579a1277f07fd7b2a609f2.tar.gz bcm5719-llvm-71aa1a9355d80ac3c9579a1277f07fd7b2a609f2.zip |
[PECOFF] Fix section alignment.
If you have something like
__declspec(align(8192)) int foo = 1;
in your code, the compiler makes the data to be aligned to 8192-byte
boundary, and the linker align the section containing the data to 8192.
LLD always aligned the section to 4192. So, as long as alignment
requirement is smaller than 4192, it was correct, but for larger
requirements, it's wrong.
This patch fixes the issue.
llvm-svn: 222043
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
0 files changed, 0 insertions, 0 deletions