Annotation of Gnu-Mach/i386/grub/symbol.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  *  GRUB  --  GRand Unified Bootloader
                      3:  *  Copyright (C) 1999,2000,2001,2002,2006,2007,2008,2009  Free Software Foundation, Inc.
                      4:  *
                      5:  *  GRUB is free software: you can redistribute it and/or modify
                      6:  *  it under the terms of the GNU General Public License as published by
                      7:  *  the Free Software Foundation, either version 3 of the License, or
                      8:  *  (at your option) any later version.
                      9:  *
                     10:  *  GRUB is distributed in the hope that it will be useful,
                     11:  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
                     12:  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     13:  *  GNU General Public License for more details.
                     14:  *
                     15:  *  You should have received a copy of the GNU General Public License
                     16:  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
                     17:  */
                     18: 
                     19: #ifndef GRUB_SYMBOL_HEADER
                     20: #define GRUB_SYMBOL_HEADER     1
                     21: 
                     22: #include <config.h>
                     23: 
                     24: /* Apple assembler requires local labels to start with a capital L */
                     25: #define LOCAL(sym)     L_ ## sym
                     26: 
                     27: /* Add an underscore to a C symbol in assembler code if needed. */
                     28: #ifndef GRUB_UTIL
                     29: 
                     30: #ifdef __APPLE__
                     31: #define MACRO_DOLLAR(x) $$ ## x
                     32: #else
                     33: #define MACRO_DOLLAR(x) $ ## x
                     34: #endif
                     35: 
                     36: #if HAVE_ASM_USCORE
                     37: #ifdef ASM_FILE
                     38: # define EXT_C(sym)    _ ## sym
                     39: #else
                     40: # define EXT_C(sym)    "_" sym
                     41: #endif
                     42: #else
                     43: # define EXT_C(sym)    sym
                     44: #endif
                     45: 
                     46: #ifdef __arm__
                     47: #define END .end
                     48: #endif
                     49: 
                     50: #if defined (__APPLE__)
                     51: #define FUNCTION(x)    .globl EXT_C(x) ; EXT_C(x):
                     52: #define VARIABLE(x)    .globl EXT_C(x) ; EXT_C(x):
                     53: #elif defined (__CYGWIN__) || defined (__MINGW32__)
                     54: /* .type not supported for non-ELF targets.  XXX: Check this in configure? */
                     55: #define FUNCTION(x)    .globl EXT_C(x) ; .def EXT_C(x); .scl 2; .type 32; .endef; EXT_C(x):
                     56: #define VARIABLE(x)    .globl EXT_C(x) ; .def EXT_C(x); .scl 2; .type 0; .endef; EXT_C(x):
                     57: #elif defined (__arm__)
                     58: #define FUNCTION(x)    .globl EXT_C(x) ; .type EXT_C(x), %function ; EXT_C(x):
                     59: #define VARIABLE(x)    .globl EXT_C(x) ; .type EXT_C(x), %object ; EXT_C(x):
                     60: #else
                     61: #define FUNCTION(x)    .globl EXT_C(x) ; .type EXT_C(x), @function ; EXT_C(x):
                     62: #define VARIABLE(x)    .globl EXT_C(x) ; .type EXT_C(x), @object ; EXT_C(x):
                     63: #endif
                     64: #endif
                     65: 
                     66: /* Mark an exported symbol.  */
                     67: #ifndef GRUB_SYMBOL_GENERATOR
                     68: # define EXPORT_FUNC(x)        x
                     69: # define EXPORT_VAR(x) x
                     70: #endif /* ! GRUB_SYMBOL_GENERATOR */
                     71: 
                     72: #endif /* ! GRUB_SYMBOL_HEADER */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.