|
From: John R. <jr...@bi...> - 2010-07-21 15:15:55
|
> Is there a way, to disable the a.out support of valgrind? On the target we > want to analyze ELF binaries only. It seems that much of the reason that valgrind wants a.out.h is for the definition of "struct nlist", which is one format for storing information that is used for debugging. (DWARF3, etc., is another format.) The format for debug info is somewhat independent of the format for other parts of compiled code; both [E]COFF and ELF can have debug info that is formatted using "stabs". So: go to another system that does have a.out.h, extract the "struct nlist" (and associated typedefs and #defines, etc.) and put that code into a file (such as linux/a.out.h) where it will be picked up by valgrind. Or, put those definitions directly into file coregrind/m_debuginfo/readstabs.c, then edit the chain of #include which leads to a.out.h. -- |