[PATCH] D64913: [yaml2obj] - Add a support for defining null sections in YAMLs.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 21 22:29:48 PDT 2019
MaskRay added a comment.
> It says (https://docs.oracle.com/cd/E19683-01/817-3677/6mj8mbtc9/index.html):
The Solaris Linker and Libraries Guide can serve as a reference if the official ELF spec is missing something that we agree upon, but for the SHN_LORESERVE thing you can just quote http://www.sco.com/developers/gabi/latest/ch4.eheader.html :
> e_shnum
> ...
> 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.)
> e_shstrndx
> ...
> 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.)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64913/new/
https://reviews.llvm.org/D64913
More information about the llvm-commits
mailing list