You are not logged in.
I'm having some trouble with ltrace. If I run
ltrace ls
I would expect to see a trace of the library calls that `ls` makes. But instead I just see this:
[angus@squirtle ~]$ ls
foo hello hello.c
[angus@squirtle ~]$ ltrace ls
foo hello hello.c
+++ exited (status 0) +++
i.e. aside from that `exited` line, `ltrace` isn't giving me any extra output.
My theory is that this is because `ltrace` relies on the binary having a PLT section, and Arch has `-fno-plt` in the default compiler flags (CFLAGS in makepkg.conf).
I confirmed that if I remove `-fno-plt` from makepkg.conf and rebuild coreutils, then `ltrace ls` works.
Is there a way to get `ltrace` working, aside from recompiling the target executables without `-fno-plt`?
Offline
Maybe assimilating this information might enlighten you: https://blog.packagecloud.io/eng/2016/0 … race-work/
Offline