diff options
author | Nick Clifton <nickc@redhat.com> | 2020-09-08 09:49:15 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-09-08 09:49:15 +0100 |
commit | b5ffa9182b5cfa038c494e4199224a90955d635d (patch) | |
tree | 36fa78c9840b622983dd46671ad65345a32419e9 /bfd/plugin.c | |
parent | 54844aa7068854d8daeb7680b3f8625fb1dd939c (diff) | |
download | binutils-gdb-b5ffa9182b5cfa038c494e4199224a90955d635d.tar.gz |
Stop the plugin handler from ignoring unknown symbol types when conanicalizing weak definitions.
* plugin.c (bfd_plugin_canonicalize_symtab): Handle the case of an
unrecognized symbol type in a weak definition.
Diffstat (limited to 'bfd/plugin.c')
-rw-r--r-- | bfd/plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/plugin.c b/bfd/plugin.c index 593e277747a..bed98520da0 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -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: |