arm compiler error undefined reference to `__libc_init_array'
<p>I am trying to compile a C program which utilizes dl library to access shared object functions from a dynamic library I created.
The code is very simple and from a tutorial.</p>

<p>I initially compiled it on x86 platform using gcc with no issues.</p>

<p>I am now trying to compile it for arm platform and I am getting an error.</p>

<p>I tried using the following to compile it</p>

<blockquote>
  <p>arm-none-eabi-gcc -I/usr/arm-linux-gnueabi/include -L/usr/arm-linux-gnueabi/lib ex29.c -ldl -o ex29</p>
</blockquote>

<p>I get the following error:</p>

<blockquote>
  <p>/usr/local/share/gcc-arm-none-eabi-toolchain/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/crt0.o: In function <code>_start':
  (.text+0xe0): undefined reference to</code>__libc_init_array'
  collect2: error: ld returned 1 exit status</p>
</blockquote>

<p>I am not sure what is causing this error.</p>

<p>Thanks for any help.</p>