lkml.org 
[lkml]   [2001]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] 2.4.6-pre3 unresolved symbol do_softirq
Date
On 13 Jun 2001 10:31:22 -0400, 
Bill Pringlemeir <bpringle@sympatico.ca> wrote:
>Try ye' olde STRINGIFY and string concatenation? Well, at least I try...
>
> #define my_symbol my_symbol_versioned
> #define STRINGIFY(a) STRINGIFY1(a)
> #define STRINGIFY1(a) #a
> extern void my_symbol(void);
>
> void foo(void)
> {
> __asm__("call " STRINGIFY(my_symbol) "\n");
> }
>
> [bpringle@localhost bpringle]$ gcc -o x x.c
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> /tmp/ccIj9Cit.o: In function `foo':
> /tmp/ccIj9Cit.o(.text+0x4): undefined reference to `my_symbol_versioned'

Only at the cost of polluting every .h file that calls a symbol from
__asm__. The whole pre-processor kludge for symbol versions goes away
in 2.5 so live with _novers for now.

-
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/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.149 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site