diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-02 16:46:30 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-02 16:46:30 +0000 |
commit | 2640a0a5e576ed0474cebc6efd89fe65e1ebbd38 (patch) | |
tree | feada97821215eb0f48820de28c484875fbfe2e3 /clang/lib/CodeGen/CGCXX.cpp | |
parent | 9a80871ffe65c96ecfb76f904f26e1c6a92b0b60 (diff) | |
download | bcm5719-llvm-2640a0a5e576ed0474cebc6efd89fe65e1ebbd38.tar.gz bcm5719-llvm-2640a0a5e576ed0474cebc6efd89fe65e1ebbd38.zip |
Align SHT_NOBITS sections is they are the first on a PT_LOAD.
We normally want to ignore SHT_NOBITS sections when computing
offsets. The sh_offset of section itself seems to be irrelevant and
- If the section is in the middle of a PT_LOAD, it will make no
difference on the computed offset of the followup section.
- If it is in the end of a PT_LOAD, we want to avoid its alignment
changing the offset of the followup sections.
The issue is if it is at the start of the PT_LOAD. In that case we do
have to align it so that the following sections have congruent address
and offset module the page size. We were not handling this case.
This should fix freebsd kernel link.
llvm-svn: 321657
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
0 files changed, 0 insertions, 0 deletions