]> git.proxmox.com Git - grub2.git/blame - include/grub/symbol.h
2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
[grub2.git] / include / grub / symbol.h
CommitLineData
6a161fa9 1/*
4b13b216 2 * GRUB -- GRand Unified Bootloader
6a161fa9 3 * Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc.
6a161fa9 4 *
4b13b216 5 * GRUB is free software; you can redistribute it and/or modify
6a161fa9 6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program 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
4b13b216 16 * along with GRUB; if not, write to the Free Software
6a161fa9 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
4b13b216 20#ifndef GRUB_SYMBOL_HEADER
21#define GRUB_SYMBOL_HEADER 1
6a161fa9 22
23#include <config.h>
24
25/* Add an underscore to a C symbol in assembler code if needed. */
26#ifdef HAVE_ASM_USCORE
27# define EXT_C(sym) _ ## sym
28#else
29# define EXT_C(sym) sym
30#endif
31
ce5bf700 32#define FUNCTION(x) .globl EXT_C(x) ; .type EXT_C(x), @function ; EXT_C(x):
33#define VARIABLE(x) .globl EXT_C(x) ; .type EXT_C(x), @object ; EXT_C(x):
6a161fa9 34
35/* Mark an exported symbol. */
36#define EXPORT_FUNC(x) x
37#define EXPORT_VAR(x) x
38
4b13b216 39#endif /* ! GRUB_SYMBOL_HEADER */