Hello,

patch below defines SHT_SYMTAB_SHNDX which is required for usage of SHN_XINDEX 
which got added/defined during October 2017 by mpi.

See: http://www.sco.com/developers/gabi/latest/ch4.sheader.html:

SHT_SYMTAB_SHNDX
    This section is associated with a symbol table section and is required if 
any of the section header indexes referenced by that symbol table contain the 
escape value SHN_XINDEX. The section is an array of Elf32_Word values. Each 
value corresponds one to one with a symbol table entry and appear in the same 
order as those entries. The values represent the section header indexes against 
which the symbol table entries are defined. Only if the corresponding symbol 
table entry's st_shndx field contains the escape value SHN_XINDEX will the 
matching Elf32_Word hold the actual section header index; otherwise, the entry 
must be SHN_UNDEF (0).

Thanks!
Karel

diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h
index 817bfc69e5a..08a515024b8 100644
--- a/sys/sys/exec_elf.h
+++ b/sys/sys/exec_elf.h
@@ -260,6 +260,7 @@ typedef struct {
 #define SHT_SHLIB      10              /* reserved - purpose unknown */
 #define SHT_DYNSYM     11              /* dynamic symbol table section */
 #define SHT_NUM                12              /* number of section types */
+#define        SHT_SYMTAB_SHNDX        18      /* symbol table section */
 #define SHT_LOPROC     0x70000000      /* reserved range for processor */
 #define SHT_HIPROC     0x7fffffff      /*  specific section header types */
 #define SHT_LOUSER     0x80000000      /* reserved range for application */

Reply via email to