llvm-project/lldb/lit/Modules/MachO
Pavel Labath 0d38e4fd2c ELF: Don't create sections for section header index 0
Summary:
The first section header does not define a real section. Instead it is
used for various elf extensions. This patch skips creation of a section
for index 0.

This has one furtunate side-effect, in that it allows us to use the section
header index as the Section ID (where 0 is also invalid). This way, we
can get rid of a lot of spurious +1s in the ObjectFileELF code.

Reviewers: clayborg, krytarowski, joerg, espindola

Subscribers: emaste, lldb-commits, arichardson

Differential Revision: https://reviews.llvm.org/D55757

llvm-svn: 349498
2018-12-18 15:56:45 +00:00
..
lc_build_version.yaml Classify tests in lit/Modules 2018-12-13 12:13:29 +00:00
lc_build_version_notools.yaml Classify tests in lit/Modules 2018-12-13 12:13:29 +00:00
lc_version_min.yaml Classify tests in lit/Modules 2018-12-13 12:13:29 +00:00
subsections.yaml ELF: Don't create sections for section header index 0 2018-12-18 15:56:45 +00:00