title: unexpected reloc type 0x03
body: <p>I'm trying to execute a program compiled with my own library, but when i execute the program I get the following error:</p>
  
  <pre><code>./a.out 
  ./a.out: error while loading shared libraries: ../../lib-arm/libCustomLibrary.so: unexpected reloc type 0x03
  </code></pre>
  
  <p>That just happens with the Release execution, with the Debug execution all works fine.</p>
  
  <p>Where do you think that may be the problem?</p>
  
  <p>The CustomLibrary Library is linked with the following arguments:</p>
  
  <pre><code>-lSubLibrary -fPIC -Wl,-Bstatic -lboost_system -lboost_filesystem -lboost_thread -lpthread -Wl,-Bdynamic -lrt
  </code></pre>
  
  <p>I attatch the lld unix library command output for my library.</p>
  
  <pre><code>ldd ../../lib-arm/libCustomLibrary.so 
  /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0x76e5d000)
  libSubLibrary.so =&gt; ../../lib-arm/libSubLibrary.so (0x76e2d000)
  librt.so.1 =&gt; /lib/arm-linux-gnueabihf/librt.so.1 (0x76e10000)
  libstdc++.so.6 =&gt; /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76d3e000)
  libm.so.6 =&gt; /lib/arm-linux-gnueabihf/libm.so.6 (0x76ccd000)
  libgcc_s.so.1 =&gt; /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76ca5000)
  libc.so.6 =&gt; /lib/arm-linux-gnueabihf/libc.so.6 (0x76b75000)
  libdl.so.2 =&gt; /lib/arm-linux-gnueabihf/libdl.so.2 (0x76b6a000)
  libpthread.so.0 =&gt; /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76b4b000)
  /lib/ld-linux-armhf.so.3 (0x76f05000)
  </code></pre>