I was using ltrace -S
to see what system calls dlopen
was making but then I noticed that SYS_mmap
was limited to only 4 arguments:
SYS_mmap(0x7f1c325fe000, 8192, 3, 2066)
while it takes a total of 6 arguments. In particular, the file descriptor, which is the sixth argument is not shown, which is crucial for my analysis.
Is there a way to make ltrace
show all my arguments?
Tested in ltrace
0.7.3, Ubuntu 16.04.
As mentioned by Mark Plotnick:
and now the
mmap
s look just right:Tested on Ubuntu 18.04, ltrace 0.7.3.