> how can I find out if a binary was compiled with `-fomit-frame-pointers` > or not?
Inspect the DWARF debug info to see if the frame pointer register has the usual annotation for being updated as a frame pointer. If no debug info, then disassemble subroutines until a "set the frame pointer" sequence is found. A leaf subroutine (one that calls no other subroutine) might not use a frame pointer regardless of the command-line flag, so it might be necessary to disassemble every routine. Note that an executable main program may have been created from multiple separately-compiled units (.o files), and each unit might have its own setting. -- ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
