views:

44

answers:

0

I am trying to debug programs on an ARM target device with GDB and GDB seems to be acting odd with regards to ld-linux.so.3. It's a simple program that just printf("Hello World").

Approximately half the time, gdb it will run and the other half jump to this error after typing run:

Program received signal SIGILL, Illegal instruction.
0x2aab9bc4 in _dl_debug_state () from /lib/ld-linux.so.3

I've also tried to statically link the libraries and I still get this error, albeit slightly less, but it still occurs with enough frequency to be problematic.

I set solib-absolute-prefix to /dev/null and solib-search-path to /lib/ on the target and it loads up the ld-linux.so.3 fine it says. Is there anything I need to do like recompile the libraries for target again or some flags GDB wants to know?

Thanks!