Mail Archives: djgpp/1993/07/20/14:59:08
What you are doing should work fine. Please provide a test case that
demonstrates the problem. Here is a test program, and the results of
building it on my (cross-compiling) djgpp system. It does what you
think it should do.
-Mat
extern void bar (void);
void
foo ()
{
bar ();
}
Generates this assembly:
.file "quam.c"
gcc2_compiled.:
___gnu_compiled_c:
.text
.align 4
.globl _foo
_foo:
pushl %ebp
movl %esp,%ebp
call _bar
movl %ebp,%esp
popl %ebp
ret
Which is assembled to use these symbols:
00000000 t ___gnu_compiled_c
U _bar
00000000 T _foo
00000000 t gcc2_compiled.
- Raw text -