This is the mail archive of the cygwin@cygwin.com 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]

gcc 3.1.1 for cygwin generates __imp_symbol


Hi all,

	I'm using gcc 3.1.1 on cygwin (i686) and
	i'm doing something to the tune of 

	gcc -c foo.o $(CFLAGS) foo.c

	and all external references in foo.c are prefixed
	with __imp.
      ^^^^^^^^^^^
	i.e nm foo.o shows something like ...

	U	__imp_external_reference 

	for a function external_reference(). It's desirable
	for me to make generate _external_reference() instead
	since i'm having trouble linking this .o file link
	with other libBAR.a files generated using GNU tools.

	The gcc flags i'm using are ...

	-c -fno-exceptions -fno-rtti -march=pentium 
	-falign-functions=64 -Wa,--no-warn  -finline-functions -O3 

	Please let me know if there is a way of supressing gcc
	from generating the __imp prefix for all externally referenced
	symbols. 

	I looked at the gcc documentation and came it came up with nothing
	on this. Am i missing something or is it just my gray cells fizzing
	out ?

	Appreciate any help/pointers/[M's in RTFM's] on this ;)

----  >8 ----
(forgive me if this question has been beaten to death on
this list already, i searched the archives already and could
not find anything on this... so i mailed). 
PS: Hi Mumit Khan !
----    ----

Wir müssen wissen, wir werden wissen (We must know, we shall know).  - David
Hilbert

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]