c/5603: -fno-leading-underscore doen't work
dimi@flashmail.com
dimi@flashmail.com
Wed Feb 6 00:26:00 GMT 2002
>Number: 5603
>Category: c
>Synopsis: -fno-leading-underscore doen't work
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 05 23:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Acunia
>Release: gcc 3.0.3
>Organization:
>Environment:
Cygwin setupversion 2.125.2.10
>Description:
I'm compiling a program under cygwin. I have .c and .s files (c and
assemble). During the linking I get the following errors:
/home/Administrator/open-wonka//build-x86-win/kernel/oswald/lib/liboswald.a(
cpu.o): In function `x_thread_switch':
/home/Administrator/open-wonka/kernel/oswald/hal/cpu/x86/src/cpu.c:36:
undefined reference to `x_host_switch'
I use the functions in my .c files but the declaration of the function is in the .s file.
While compiling gcc puts an underscore in front of the function, but in my
compiled .s files the function has NO leading underscore!
I tried to compile with -fno-leading-underscore but there is still a _ in my .o files. How do I solve this problem? How do I get rit of those underscores?
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list