Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2015-06-18 Mark Wielaard <mjw@redhat.com>
+
+ * elflint.c (check_symtab): Only check the PT_TLS phdr if it actually
+ exists. Warn otherwise.
+
2015-06-18 Mark Wielaard <mjw@redhat.com>
* nm.c (show_symbols): Check sizeof (sym_mem[0]), not GElf_Sym to
section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"),
idx, section_name (ebl, idx), cnt);
}
+ else if (phdr == NULL)
+ {
+ ERROR (gettext ("\
+section [%2d] '%s': symbol %zu: TLS symbol but couldn't get TLS program header entry\n"),
+ idx, section_name (ebl, idx), cnt);
+ }
else
{
if (st_value