This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: base relocations and vtune


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:

<http://cygwin.com/cygwin-ug-net/dll.html#dll-build>

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]