llvm /
lldb /
fffbf55d073353431b9b7ad19893201e2170f438 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
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@349498 91177308-0d34-0410-b5e6-96231b3b80d8
5 files changed