SYMTAB_SHNDX was introduced when elf.h was imported, but not yet handled
in ebl_dynamic_tag_name. Handle it and add an eu_static_assert to make
sure stdtags always contains DT_NUM entries.
https://sourceware.org/bugzilla/show_bug.cgi?id=22976
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2018-03-16 Mark Wielaard <mark@klomp.org>
+
+ * ebldynamictagname.c (ebl_dynamic_tag_name): Add SYMTAB_SHNDX to
+ stdtags. Add a eu_static_assert to make sure stdtags contains all
+ DT_NUM entries.
+
2018-02-21 Mark Wielaard <mark@klomp.org>
* eblcheckreloctargettype.c (ebl_check_reloc_target_type): Accept
#include <inttypes.h>
#include <stdio.h>
#include <libeblP.h>
+#include "system.h"
const char *
"RELENT", "PLTREL", "DEBUG", "TEXTREL", "JMPREL", "BIND_NOW",
"INIT_ARRAY", "FINI_ARRAY", "INIT_ARRAYSZ", "FINI_ARRAYSZ",
"RUNPATH", "FLAGS", "ENCODING", "PREINIT_ARRAY",
- "PREINIT_ARRAYSZ"
+ "PREINIT_ARRAYSZ", "SYMTAB_SHNDX"
};
+ eu_static_assert (sizeof (stdtags) / sizeof (const char *) == DT_NUM);
res = stdtags[tag];
}