diff options
author | George Rimar <grimar@accesssoftek.com> | 2019-07-23 11:03:37 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2019-07-23 11:03:37 +0000 |
commit | 1957d68957c8fc988e290db3ca92333648e20726 (patch) | |
tree | 9df1773884b9365e2cfb5d09d81a9aafbcd199ba /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp | |
parent | 87adcf8c470726869541483a47e7931874cb7312 (diff) | |
download | bcm5719-llvm-1957d68957c8fc988e290db3ca92333648e20726.tar.gz bcm5719-llvm-1957d68957c8fc988e290db3ca92333648e20726.zip |
[yaml2obj] - Add a support for defining null sections in YAMLs.
ELF spec shows (Figure 4-10: Section Header Table Entry:Index 0,
http://www.sco.com/developers/gabi/latest/ch4.sheader.html)
that section header at index 0 (null section) can have sh_size and
sh_link fields set to non-zero values.
It says (https://docs.oracle.com/cd/E19683-01/817-3677/6mj8mbtc9/index.html):
"If the number of sections is greater than or equal to SHN_LORESERVE (0xff00),
this member has the value zero and the actual number of section header table
entries is contained in the sh_size field of the section header at index 0.
Otherwise, the sh_size member of the initial entry contains 0."
and:
"If the section name string table section index is greater than or equal to SHN_LORESERVE
(0xff00), this member has the value SHN_XINDEX (0xffff) and the actual index of the section
name string table section is contained in the sh_link field of the section header at index 0.
Otherwise, the sh_link member of the initial entry contains 0."
At this moment it is not possible to create custom section headers at index 0 using yaml2obj.
This patch implements this.
Differential revision: https://reviews.llvm.org/D64913
llvm-svn: 366794
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions