Here's my gdb session

$ gdb ./libcap/libcap.so
GNU gdb (Debian 15.2-1) 15.2
<...snipped for brevity...>
Reading symbols from ./libcap/libcap.so...
(gdb) b 42
Breakpoint 1 at 0xaa70: file execable.c, line 42.
(gdb) r
Starting program: libcap2-2.66/libcap/libcap.so

Breakpoint 1, __execable_main (argc=1, argv=0x421310) at execable.c:42
42          if (argv != NULL && argv[0] != NULL) {
(gdb) info symbol printf
No symbol "printf" in current context.
(gdb) info symbol strcmp
strcmp in section .text of /lib/ld.so.1

Surely these symbols should be coming from the .text section of
libcap.so itself?

The first test for mips64el appears to succeed so I wonder if it is
crashing instead on one of the the strcmp()
calls in SO_MAIN.

Reply via email to