llvm-project/lldb/lit/Modules
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
..
Breakpad Re-commit "Introduce ObjectFileBreakpad" 2018-12-10 17:16:38 +00:00
ELF ELF: Don't create sections for section header index 0 2018-12-18 15:56:45 +00:00
MachO ELF: Don't create sections for section header index 0 2018-12-18 15:56:45 +00:00
PECOFF [pecoff] Implement ObjectFilePECOFF::GetDependedModules() 2018-12-06 21:36:39 +00:00
lit.local.cfg ELF: Replace the header-extension unit test with a lit one 2018-07-19 14:38:30 +00:00