Re: [patch] 2.4.6-pre3 unresolved symbol do_softirq

Keith Owens
2001-06-13T14:10:40Z

On Wed, 13 Jun 2001 07:01:34 -0700 (PDT),
"David S. Miller" <davem@redhat.com> wrote:
>Why doesn't this work on x86?
>
>#define my_symbol my_symbol_versioned
>extern void my_symbol(void);
>
>__asm__("call %0" : : "i" (my_symbol));

#define my_symbol my_symbol_versioned
extern void my_symbol(void);

void foo(void) { __asm__("call %0" : : "i" (my_symbol)); }

# gcc -o x x.c
/tmp/cclWXduj.s: Assembler messages:
/tmp/cclWXduj.s:12: Error: suffix or operands invalid for `call'