title: Android NDK produce massive .so file which has only one function
body: <p>I get <strong>800KB</strong> <code>.so</code> file when build this <code>cpp</code> file with android NDK:</p>
  
  <p><strong>test.cpp</strong></p>
  
  <pre class="lang-cpp prettyprint-override"><code>int *test() {
      return new int;
  }
  </code></pre>
  
  <p><strong>CMakeLists.txt</strong></p>
  
  <pre><code>cmake_minimum_required(VERSION 3.4.1)
  set(SOURCE_FILES test.cpp)
  add_library(native_util SHARED ${SOURCE_FILES})
  </code></pre>
  
  <p>It's unacceptable size for me. Correct me if anything wrong about this.</p>
  
  <hr>
  
  <p>I just realized when  I remove <code>new int</code> in <code>test.cpp</code> , then <code>.so</code> file size reduce to 80KB... hmm, how possible??? </p>
  
  <p><strong>test.cpp</strong> which produce <strong>80KB</strong> <code>.so</code> file</p>
  
  <pre class="lang-cpp prettyprint-override"><code>int test() {
      return 0;
  }
  </code></pre>
  
  <hr>
  
  <p>My NDK version:</p>
  
  <pre><code>Android/sdk/ndk-bundle 
  ➜ cat source.properties 
  Pkg.Desc = Android NDK
  Pkg.Revision = 19.2.5345600
  </code></pre>