]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/readelf.c
Properly implement STT_COMMON
[thirdparty/binutils-gdb.git] / binutils / readelf.c
index 7a755b4670884899e57fda98d0915fab8f71e8a3..a40453d367fcc0d527857de28d94232f7b1001f6 100644 (file)
@@ -11982,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"),