Stop the plugin handler from ignoring unknown symbol types when conanicalizing weak...
authorNick Clifton <nickc@redhat.com>
Tue, 8 Sep 2020 08:49:15 +0000 (09:49 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 8 Sep 2020 08:49:15 +0000 (09:49 +0100)
* plugin.c (bfd_plugin_canonicalize_symtab): Handle the case of an
unrecognized symbol type in a weak definition.

bfd/ChangeLog
bfd/plugin.c

index 75bcf55316289b859a112bdcf9f525d643c3bc30..22cee1d66420c68058189f9b7c415fae482fb776 100644 (file)
@@ -1,3 +1,8 @@
+2020-09-08  Nick Clifton  <nickc@redhat.com>
+
+       * plugin.c (bfd_plugin_canonicalize_symtab): Handle the case of an
+       unrecognized symbol type in a weak definition.
+
 2020-09-04  Alan Modra  <amodra@gmail.com>
 
        PR 26574
index 593e277747af6792d18c483539857f36062b08f7..bed98520da0732301e067918c213eb768e468469 100644 (file)
@@ -640,6 +640,8 @@ bfd_plugin_canonicalize_symtab (bfd *abfd,
          if (current_plugin->has_symbol_type)
            switch (syms[i].symbol_type)
              {
+             default:
+               /* FIXME: Should we issue an error here ?  */
              case LDST_UNKNOWN:
                /* What is the best fake section for LDST_UNKNOWN?  */
              case LDST_FUNCTION: