diff options
| author | Fangrui Song <maskray@google.com> | 2019-04-18 09:22:05 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-04-18 09:22:05 +0000 |
| commit | 3deff86657c8a479c4c5d2fdd12c49a75293a8e1 (patch) | |
| tree | 3cecd5babebad27b8ed674499c0ad06e5e2d943b /clang/lib/AST/StmtPrinter.cpp | |
| parent | 66a9d0f8c6c90d4235d23d190be5494f06763c57 (diff) | |
| download | bcm5719-llvm-3deff86657c8a479c4c5d2fdd12c49a75293a8e1.tar.gz bcm5719-llvm-3deff86657c8a479c4c5d2fdd12c49a75293a8e1.zip | |
[ELF] Respect NonAlloc when copying flags from the previous sections
Summary:
If the output section contains only symbol assignments, we copy flags
from the previous sections. Don't set SHF_ALLOC if NonAlloc is true.
We also have to change the type from SHT_NOBITS to SHT_PROGBITS.
In ld.bfd, bfd_elf_get_default_section_type maps non-alloctable sections to SHT_PROGBITS.
Non-alloctable SHT_NOBITS sections do not make sense.
Fixes PR38626
Differential Revision: https://reviews.llvm.org/D59986
llvm-svn: 358650
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
0 files changed, 0 insertions, 0 deletions

