mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: Uwe Reimann <linux-kernel@pulsar.homelinux.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ENTRY-macro in linkage.h
Date: Sun, 9 Feb 2003 17:11:37 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.44.0302091707320.32518-100000@serv> (raw)
In-Reply-To: <3E464B14.5040004@pulsar.homelinux.net>

Hi,

On Sun, 9 Feb 2003, Uwe Reimann wrote:

> My problem is how to add the whitespace. The preprocessor seems to strip 
> it. Consider this (test.S):
> 
> #define ENTRY(X) \
>   .global X##; \
> X##:   
> 
> ENTRY(foo)
> ENTRY(bar)
> 
> gcc -S test.S:
> 
> .global foo; foo:
> .global bar; bar:
> 
> For c4x-gcc, this has to be like this:
> 
>     .global foo
> foo:
>     .global bar
> bar:
> 
> Without the leading whitespace, .global is taken as a name of a label. 
> Without the newline before the labels, they are not recognized (taken as 
> comments).

You don't have to use the ENTRY macro anymore, it was useful when kernel 
could be in a.out format, so the underscore was automatically prepended to 
the symbol.

bye, Roman


      reply	other threads:[~2003-02-09 16:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-08 16:51 Uwe Reimann
     [not found] ` <1044752435.18908.23.camel@irongate.swansea.linux.org.uk>
2003-02-09 12:35   ` Uwe Reimann
2003-02-09 16:11     ` Roman Zippel [this message]

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=Pine.LNX.4.44.0302091707320.32518-100000@serv \
    --to=zippel@linux-m68k.org \
    --cc=linux-kernel@pulsar.homelinux.net \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®