Re: [patch] 2.4.6-pre3 unresolved symbol do_softirq

From: Andrew Morton (andrewm@uow.edu.au)
Date: Wed Jun 13 2001 - 09:37:14 EST


"David S. Miller" wrote:
>
> Keith Owens writes:
> > #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'
>
> I can't believe there is no reliable way to get rid of that
> pesky "$" gcc is adding to the symbol. Oh well...

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

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 21:00:18 EST