summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-11-14 21:33:07 +0000
committerRui Ueyama <ruiu@google.com>2014-11-14 21:33:07 +0000
commit71aa1a9355d80ac3c9579a1277f07fd7b2a609f2 (patch)
tree39423284dd1af8f0820fdc1949d213acfa5b94f8 /clang/lib/Sema/SemaChecking.cpp
parent2e2b0b3942d1a6ea5ae1f0eb67f916f974a05493 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud