public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Pringlemeir <bpringle@sympatico.ca>
To: Keith Owens <kaos@ocs.com.au>
Cc: "David S. Miller" <davem@redhat.com>,
	torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [patch] 2.4.6-pre3 unresolved symbol do_softirq
Date: 13 Jun 2001 10:31:22 -0400	[thread overview]
Message-ID: <m2zobcxxhh.fsf@sympatico.ca> (raw)
In-Reply-To: <10322.992441398@ocs4.ocs-net>
In-Reply-To: Keith Owens's message of "Thu, 14 Jun 2001 00:09:58 +1000"

>>>>> "Keith" == Keith Owens <kaos@ocs.com.au> writes:

 Keith> #define my_symbol my_symbol_versioned extern void
 Keith> my_symbol(void);

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

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

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'
     collect2: ld returned 1 exit status

regards,
Bill Pringlemeir.


  parent reply	other threads:[~2001-06-13 14:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-13 12:07 [patch] 2.4.6-pre3 unresolved symbol do_softirq Keith Owens
2001-06-13 12:13 ` David S. Miller
2001-06-13 13:48   ` Jeff Garzik
2001-06-13 13:58     ` David S. Miller
2001-06-13 14:03     ` Keith Owens
2001-06-13 14:06       ` David S. Miller
2001-06-13 14:11         ` Keith Owens
2001-06-13 14:15           ` David S. Miller
2001-06-13 14:37             ` Keith Owens
2001-06-13 13:58   ` Keith Owens
2001-06-13 14:01     ` David S. Miller
2001-06-13 14:09       ` Keith Owens
2001-06-13 14:21         ` David S. Miller
2001-06-13 14:37           ` Andrew Morton
2001-06-13 14:44           ` Andreas Schwab
2001-06-13 14:53             ` Russell King
2001-06-13 14:55             ` David S. Miller
2001-06-13 16:39               ` Keith Owens
2001-06-13 14:52           ` Russell King
2001-06-13 14:31         ` Bill Pringlemeir [this message]
2001-06-13 14:39           ` Keith Owens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zobcxxhh.fsf@sympatico.ca \
    --to=bpringle@sympatico.ca \
    --cc=davem@redhat.com \
    --cc=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox