hanchenye-llvm-project/lldb/tools/lldb-test
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
..
CMakeLists.txt
FormatUtil.cpp lldb-test: Improve newline handling 2018-12-15 13:49:25 +00:00
FormatUtil.h lldb-test: Improve newline handling 2018-12-15 13:49:25 +00:00
SystemInitializerTest.cpp Re-commit "Introduce ObjectFileBreakpad" 2018-12-10 17:16:38 +00:00
SystemInitializerTest.h [Reproducers] Change how reproducers are initialized. 2018-12-03 17:28:29 +00:00
lldb-test.cpp ELF: Don't create sections for section header index 0 2018-12-18 15:56:45 +00:00