hanchenye-llvm-project/lld/lib
Rui Ueyama 71aa1a9355 [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
2014-11-14 21:33:07 +00:00
..
Config Add support to print version. 2014-10-08 03:47:51 +00:00
Core Follow-up to r221913. Fix some -Wcast-qual warning reasons. 2014-11-14 07:15:43 +00:00
Driver [ELF] Fix conditions for max-page-size. 2014-11-13 04:03:46 +00:00
Passes [mach-o] Add support for -order_file option 2014-11-07 21:01:21 +00:00
ReaderWriter [PECOFF] Fix section alignment. 2014-11-14 21:33:07 +00:00
CMakeLists.txt Revert "Add support library." 2014-11-11 00:40:36 +00:00
Makefile Revert "Add support library." 2014-11-11 00:40:36 +00:00