Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: Cygwin List Message-Id: <6.2.1.2.0.20050826142958.03d8a610@pop.prospeed.net> Date: Fri, 26 Aug 2005 14:43:31 -0400 To: amosa AT caltech DOT edu, cygwin AT cygwin DOT com From: Larry Hall Subject: Re: base relocations and vtune In-Reply-To: <9e9109705082610152a21d62b@mail.gmail.com> References: <9e9109705082610152a21d62b AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:15 PM 8/26/2005, you wrote: >hello -- i'm trying to figure out how to profile my code compiled with >gcc/cygwin with intel vtune's call graph. > >this might be a problem specific to the call graph functionality itself. > >i was able to instrument all my program with vtune so i can run the >call graph activity, but i get the warning "Module does not contain >base relocations." a popup message informs me about the /fixed:no >change for use with visual studio -- but i've been unable to find an >analogous makefile modification for gcc/cygwin. > >when i run the call graph activity on my executables, it runs just >fine, but none of my functions show up in the call list. only system >dll functions show up -- and the graph attempts to build a tree out of >cygwin1.dll, kernel32.dll, et al. > >by searching i found the "GCC for Windows help" thread, which seems to >touch on this issue >http://sourceware.org/ml/cygwin/2003-05/msg00436.html >but i don't understand what they're talking about (i don't know what >"base relocations" themselves are...) > >i would appreciate any guidance on this topic. You haven't really given much detail of what you're trying to do and where you see problems. Based on the minimal information above, I'm going to guess that the problem is with your own DLL (since you imply other system and Cygwin DLLs don't have a problem and don't give you the warning.) If that's the case, I suggest you use the User's Guide section on building DLLs as a guide: If you're having a problem because other DLLs you're using collide with the default base image address of your DLL, you can specify a different base address when you build your DLL by using the '--enable-auto-image-base' switch of 'ld'. See the man page for more details. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/