diff options
author | Rui Ueyama <ruiu@google.com> | 2019-09-05 05:30:24 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2019-09-05 05:30:24 +0000 |
commit | e99dc4ba572c5d1017942e9f51d7a227813e9bc1 (patch) | |
tree | 3e6ffeda41c0397bfaaadea40a590f2ab0e54e16 /lldb/packages/Python/lldbsuite/test/lang/cpp/call-function/main.cpp | |
parent | 281f2e2c37f35598766d3ffcaec2b558add14ee0 (diff) | |
download | bcm5719-llvm-e99dc4ba572c5d1017942e9f51d7a227813e9bc1.tar.gz bcm5719-llvm-e99dc4ba572c5d1017942e9f51d7a227813e9bc1.zip |
Align output segments correctly
Previously, segments were aligned according to their first section's
alignment requirements. That was not correct, but segments are also
aligned to a page boundary, and a page boundary is usually much larger
than a section alignment requirement, so no one noticed this bug before.
Now, lld has --nmagic option which sets maxPageSize to 1 to effectively
disable page alignment, which reveals the issue.
Fixes https://bugs.llvm.org/show_bug.cgi?id=43212
Differential Revision: https://reviews.llvm.org/D67152
llvm-svn: 371013
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/call-function/main.cpp')
0 files changed, 0 insertions, 0 deletions