title: error: invalid type argument of ‘->’ (have ‘int’)
body: <p>I am trying to build an old binutils (2.13). getting the error ./config/obj-elf.c:364: error: invalid type argument of ‘->’ (have ‘int’)  on the next line :</p>
  
  <pre><code>if (symbol_get_obj (symbolP)-&gt;local)
  {...
  </code></pre>
  
  <p>the function symbol_get_obj :</p>
  
  <pre><code>OBJ_SYMFIELD_TYPE *
  symbol_get_obj (s)
       symbolS *s;
  {
    if (LOCAL_SYMBOL_CHECK (s))
      s = local_symbol_convert ((struct local_symbol *) s);
    return &amp;s-&gt;sy_obj;
  }
  </code></pre>
  
  <p>OBJ_SYMFIELD_TYPE is defined to be :</p>
  
  <pre><code>#define OBJ_SYMFIELD_TYPE struct elf_obj_sy
  </code></pre>
  
  <p>and elf_obj_sy is </p>
  
  <pre><code>struct elf_obj_sy
  {
    /* Whether the symbol has been marked as local.  */
    int local;
  
    /* Use this to keep track of .size expressions that involve
       differences that we can't compute yet.  */
    expressionS *size;
  
    /* The name specified by the .symver directive.  */
    char *versioned_name;
  
  #ifdef ECOFF_DEBUGGING
    /* If we are generating ECOFF debugging information, we need some
       additional fields for each symbol.  */
    struct efdr *ecoff_file;
    struct localsym *ecoff_symbol;
    valueT ecoff_extern_size;
  #endif
  };
  </code></pre>
  
  <p>couldn't understand what is wrong with this code ... any advice ?</p>