Using versioned symbols in assembler parts of a source file

Uwe Bonnes (bon@elektron.ikp.physik.th-darmstadt.de)
Tue, 12 Aug 1997 15:07:25 +0200


Hallo,

the driver for transputer link adapter "link" from transputer-08c.tar.gz
has the option to use Assembler in som critical routines.
Here is a part of the code:
"pushl %%edx\n\t" /* call the scheduler */
"call " SYMBOL_NAME_STR(schedule)"\n\t" /* scheduler */
"popl %%edx\n\t"

Trying to compile the code as a versioned module leaves "schedule"
unresolved. I used
gcc -Wall -Wstrict-prototypes -Wno-unused -O2 -fomit-frame-pointer \
-pipe -D__KERNEL__ -DMODULE -DMODVERSIONS -include \
/usr/include/linux/modversions.h -o link.o -c link.c
to compile.

Is there any clean way to solve this problem?

Thanks

-- 
Uwe Bonnes                bon@elektron.ikp.physik.th-darmstadt.de

Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------