]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/readelf.c
Properly implement STT_COMMON
[thirdparty/binutils-gdb.git] / binutils / readelf.c
index d6abab800af2d12c72145aba6c1e1c3994bce89a..a40453d367fcc0d527857de28d94232f7b1001f6 100644 (file)
@@ -3996,6 +3996,7 @@ get_section_type_name (unsigned int sh_type)
            case EM_V850:
            case EM_CYGNUS_V850:
              result = get_v850_section_type_name (sh_type);
+             break;
            default:
              result = NULL;
              break;
@@ -11981,6 +11982,7 @@ apply_relocations (void *                     file,
             referencing a global array.  For an example of this see
             the _clz.o binary in libgcc.a.  */
          if (sym != symtab
+             && ELF_ST_TYPE (sym->st_info) != STT_COMMON
              && ELF_ST_TYPE (sym->st_info) > STT_SECTION)
            {
              warn (_("skipping unexpected symbol type %s in %ld'th relocation in section %s\n"),