All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@didntduck.org>
To: Marty Leisner <mleisner@eng.mc.xerox.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: what's the purpose of SYMBOL_NAME()
Date: Thu, 14 Jun 2001 13:34:42 -0400	[thread overview]
Message-ID: <3B28F5B2.80458694@didntduck.org> (raw)
In-Reply-To: <200106141657.MAA09198@mailhost.eng.mc.xerox.com>

Marty Leisner wrote:
> 
> I'm read Bovet's "Understand the Linux Kernel"
> and looked at the assembly routine setup_idt...
> 
> I noticed the assembly has SYMBOL_NAME
> (its all over the place).
> 
> This is define in include/linux/linkage.h
> 
> to just:
> #define SYMBOL_NAME(X) X
> 
> (this wasn't in Bovet's book).
> 
> What's the purpose?

IIRC, it's a holdover from the days when the kernel could be compiled in
a.out and ELF format.  a.out prepends an underscore to all symbols,
whereas ELF does not.

--

				Brian Gerst

      reply	other threads:[~2001-06-14 17:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-14 16:57 what's the purpose of SYMBOL_NAME() Marty Leisner
2001-06-14 17:34 ` Brian Gerst [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=3B28F5B2.80458694@didntduck.org \
    --to=bgerst@didntduck.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mleisner@eng.mc.xerox.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.