<< 26/55 >>
First Last

dyld-info-command - weak_bind

rebase, bind, weak_bind, lazy_bind, and export

  template <class T>
  struct C {
    static int value;
  };
  
  template <class T>
  int C<T>::value;
  
  int main() {
    printf("%d\n", C<int>::value);
  }

% dyldinfo -weak_bind a.out | c++filt

  weak binding information:
  segment section          address       type     addend symbol
  __DATA  __nl_symbol_ptr  0x100001028    pointer       0 C<int>::value