[Lldb-commits] [PATCH] D55757: ELF: Don't create sections for section 0
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 17 00:16:16 PST 2018
labath created this revision.
labath added reviewers: clayborg, krytarowski, joerg.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: espindola.
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, as it allows us to use the section
header index as the Section ID (where 0 is also invalid), and allows us
to get rid of a lot of spurious +1s in the ObjectFileELF code.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6379 bytes
Desc: not available
More information about the lldb-commits