* what's the purpose of SYMBOL_NAME()
@ 2001-06-14 16:57 Marty Leisner
2001-06-14 17:34 ` Brian Gerst
0 siblings, 1 reply; 2+ messages in thread
From: Marty Leisner @ 2001-06-14 16:57 UTC (permalink / raw)
To: linux-kernel
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?
marty mleisner@eng.mc.xerox.com
Don't confuse education with schooling.
Milton Friedman to Yogi Berra
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: what's the purpose of SYMBOL_NAME()
2001-06-14 16:57 what's the purpose of SYMBOL_NAME() Marty Leisner
@ 2001-06-14 17:34 ` Brian Gerst
0 siblings, 0 replies; 2+ messages in thread
From: Brian Gerst @ 2001-06-14 17:34 UTC (permalink / raw)
To: Marty Leisner; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-14 17:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-14 16:57 what's the purpose of SYMBOL_NAME() Marty Leisner
2001-06-14 17:34 ` Brian Gerst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).